hibernate的hibernate.cfg.xml配置(ms sqlserver)

<!DOCTYPE hibernate-configuration PUBLIC        "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory >

      <property name="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</property>
      <property name="connection.driver_class">com.microsoft.jdbc.sqlserver.SQLServerDriver</property>
      <property name="connection.url">jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=myhibernate
      </property>
      <property name="connection.username">sa</property>
      <property name="connection.password">sa</property>
      <mapping resource="com/ouxingning/hibernate/EntityArticle.hbm.xml"/>
</session-factory>
</hibernate-configuration>




文章来自: 本站原创
引用通告地址: http://www.is21.cn/trackback.asp?tbID=64
Tags:
评论: 0 | 引用: 0 | 查看次数: 2471
发表评论
你没有权限发表留言!