mssql server2005 hibernate配置

来源:互联网 发布:日本酱油 知乎 编辑:程序博客网 时间:2024/05/08 23:04
<?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
原创粉丝点击