Hibernate反转提示Could not get list of suggested identity strategies from database. 我用的是hibernate3.1,mysql用的5.1,驱动用的是mysql-2.0.4.jar,为什么在反转的时候总是提示Could not get list of suggested identity strategies from database. Probably a JDBC driver problem. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 mysql-connector-java-5.1.x-bin.jar换成这个驱动试试 <?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"><!-- Generated by MyEclipse Hibernate Tools. --><hibernate-configuration><session-factory> <property name="dialect">org.hibernate.dialect.MySQLDialect</property> <property name="connection.url">jdbc:mysql://localhost:3306/demo</property> <property name="connection.username">root</property> <property name="connection.driver_class">org.gjt.mm.mysql.Driver</property> <property name="myeclipse.connection.profile">MySQL</property> <property name="connection.password"></property></session-factory></hibernate-configuration> 测试链接的时候是成功的,而且在BD Browser中是可以连接成功的 这是反转失败后生成的文件<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE hibernate-reverse-engineering PUBLIC "-//Hibernate/Hibernate Reverse Engineering DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd" ><hibernate-reverse-engineering></hibernate-reverse-engineering> 驱动换为 mysql-connector-java-5.1.x-bin.jar <property name="connection.driver_class">com.mysql.jdbc.Driver</property> 项目启动无错误,打开JSP页面报错 DWR无法获取data 如何在网页中画图 求助,ibatis动态表及参数传入 我下载的tomcat5运行不了。为什么? 为什么tomcat跑我的网页时间长了会速度很慢很慢!? 有没有高手知道,怎么样可以直接把asp程序改成jsp。谢谢啊! 请教!(在线等待) No action instance for path /user/login could be created 求大神 速度 解决呀 各位刚上班的进来转转 Google GWT 在Windows下如何实现mysql的增量备份
换成这个驱动试试
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"><!-- Generated by MyEclipse Hibernate Tools. -->
<hibernate-configuration><session-factory>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="connection.url">jdbc:mysql://localhost:3306/demo</property>
<property name="connection.username">root</property>
<property name="connection.driver_class">org.gjt.mm.mysql.Driver</property>
<property name="myeclipse.connection.profile">MySQL</property>
<property name="connection.password"></property></session-factory></hibernate-configuration>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-reverse-engineering PUBLIC "-//Hibernate/Hibernate Reverse Engineering DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd" ><hibernate-reverse-engineering>
</hibernate-reverse-engineering>
</property>