mssql server2005 hibernate配置
发布时间:2020-12-12 14:08:17 所属栏目:MsSql教程 来源:网络整理
导读:?xml version="1.0" encoding="UTF-8"?!DOCTYPE hibernate-configuration PUBLIC"-//Hibernate/Hibernate Configuration DTD 3.0//EN""http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"hibernate-configurationsession-factory property
<?xml version="1.0" encoding="UTF-8"?> <!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.connection.driver_class">com.microsoft.sqlserver.jdbc.SQLServerDriver</property> <property name="hibernate.connection.url">jdbc:sqlserver://localhost:1433;DatabaseName=wrz</property> <property name="hibernate.connection.username">sa</property> <property name="hibernate.connection.password">1234</property> <property name="hibernate.hbm2ddl.auto">create</property> <property name="dialect">org.hibernate.dialect.SQLServerDialect</property> <property name="hibernate.show_sql">true</property> <!-- 配置ORM文件 --> <mapping resource="demo/xfire/entity/User.hbm.xml"/> </session-factory> </hibernate-configuration> jdbc驱动下载地址: http://download.csdn.net/detail/wjg19890301/5099501 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |