<?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 ="connection.url" >
jdbc:microsoft:sqlserver://127.0.0.1:1433;DatabaseName=sgl
</property >
<property name ="connection.driver_class" >
com.microsoft.jdbc.sqlserver.SQLServerDriver
</property >
<property name ="connection.username" >
sa
</property >
<property name ="connection.password" >
sa
</property >
<property name ="dialect" >
org.hibernate.dialect.SQLServerDialect
</property >
<property name ="hibernate.show_sql" >
true
</property >
<property name ="hibernate.transaction.factory_class" >
org.hibernate.transaction.JDBCTransactionFactory
</property >
<mapping resource ="com/rong/orm/user.hbm.xml"/>
</session-factory >
</hibernate-configuration >
java.sql.SQLWarning: [Microsoft][SQLServer 2000 Driver for JDBC]Database changed to sgl
怎么解决,查了很多资料
<!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 ="connection.url" >
jdbc:microsoft:sqlserver://127.0.0.1:1433;DatabaseName=sgl
</property >
<property name ="connection.driver_class" >
com.microsoft.jdbc.sqlserver.SQLServerDriver
</property >
<property name ="connection.username" >
sa
</property >
<property name ="connection.password" >
sa
</property >
<property name ="dialect" >
org.hibernate.dialect.SQLServerDialect
</property >
<property name ="hibernate.show_sql" >
true
</property >
<property name ="hibernate.transaction.factory_class" >
org.hibernate.transaction.JDBCTransactionFactory
</property >
<mapping resource ="com/rong/orm/user.hbm.xml"/>
</session-factory >
</hibernate-configuration >
java.sql.SQLWarning: [Microsoft][SQLServer 2000 Driver for JDBC]Database changed to sgl
怎么解决,查了很多资料
解决方案 »
- jsp页面问题
- 动态生成树遇麻烦了(大伙帮帮忙~)
- jsp解析xml代码
- 按关键字搜索页面的代码实现?前辈快来帮忙!!!
- 请教 tapestry 批量删除?
- 小弟求一份关于struts的分页显示源代码,最好是mysql的!有分贡上。。。。。。谢了
- 字符串的处理,在线等
- 请问怎样取得delete掉的某个数据表的记录数啊?
- <a href="#" onclick="check(<%=id%>)">sss</a>为什么总是报语法错误?
- 仅有asp基础,一点点jsp基础直接开始学了struts,经过了一段时间还是一头雾水,求教啊?
- 有谁去新浪微博面试应用开发的实习生了?讲讲面试经啊!
- AVA5201.0.0.6
public static int getNexeId(){
Session session = ConnectionSgl.getSession();
String sql = "select max(id) from User";
Query query = session.createQuery(sql);
List<Integer> list = query.list();
int nextId = list.get(0)+1;
return nextId;
}
数据库里也保存了