日期:2014-05-18 浏览次数:20710 次
21:40:08,046 WARN JDBCExceptionReporter:48 - SQL Warning: 0, SQLState: 21:40:08,062 WARN JDBCExceptionReporter:49 - [Microsoft][SQLServer 2000 Driver for JDBC]Database changed to HibernateTest 21:40:08,062 WARN JDBCExceptionReporter:48 - SQL Warning: 5701, SQLState: 01000 21:40:08,062 WARN JDBCExceptionReporter:49 - [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]已将数据库上下文改为 'HibernateTest'。 21:40:08,078 WARN JDBCExceptionReporter:48 - SQL Warning: 0, SQLState: 21:40:08,078 WARN JDBCExceptionReporter:49 - [Microsoft][SQLServer 2000 Driver for JDBC]Language changed to 简体中文 21:40:08,078 WARN JDBCExceptionReporter:48 - SQL Warning: 5703, SQLState: 01000 21:40:08,078 WARN JDBCExceptionReporter:49 - [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]已将语言设置改为 简体中文。
<?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> <!-- JDBC驱动程序 --> <property name="hibernate.connection.driver_class">com.microsoft.jdbc.sqlserver.SQLServerDriver</property> <!-- 连接数据库URL --> <property name="hibernate.connection.url">jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=HibernateTest</property> <!-- 连接数据库用户名 --> <property name="hibernate.connection.username">sa</property> <!-- 连接数据库密码 --> <property name="hibernate.connection.password">xingxing</property> <!-- 方言 --> <property name="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</property> <property name="hibernate.show_sql">true</property> <mapping resource="entity/User.hbm.xml"/> </session-factory> </hibernate-configuration>