hibernate的hibernate.cfg.xml配置(ms sqlserver)
作者:admin 日期:2007-09-17
<!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://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>
评论: 0 | 引用: 0 | 查看次数: 2471
发表评论
你没有权限发表留言!