67,513
社区成员
发帖
与我相关
我的任务
分享
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.url">jdbc:microsoft:sqlserver://Localhost:1433;SelectMethod=cursor;DatabaseName=hibernate</property>
<property name="hibernate.connection.driver_class">com.microsoft.jdbc.sqlserver.SQLServerDriver</property>
<property name="hibernate.connection.username">sa</property>
<property name="hibernate.connection.password">123</property>
<property name="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</property>
<property name="hibernate.show_sql">true</property>
<mapping resource="cao/fa/ping/User.hbm.xml"/>
</session-factory>
</hibernate-configuration>
<hibernate-mapping >
<class name="cao.fa.ping.User">
<id name="id">
<generator class="uuid"/>
</id>
<property name="name"/>
<property name="passwd"/>
<property name="createTime"/>
</class>
</hibernate-mapping>
java.sql.SQLWarning: [Microsoft][SQLServer 2000 Driver for JDBC]Database changed to hibernate
at com.microsoft.jdbc.base.BaseWarnings.createSQLWarning(Unknown Source)
at com.microsoft.jdbc.base.BaseWarnings.get(Unknown Source)
at com.microsoft.jdbc.base.BaseConnection.getWarnings(Unknown Source)
at org.hibernate.util.JDBCExceptionReporter.logAndClearWarnings(JDBCExceptionReporter.java:22)
at org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.release(ManagedProviderConnectionHelper.java:42)
at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:212)
at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:133)
at cao.fa.ping.TextHibernate.main(TextHibernate.java:13)