JBPM4.4,MYSQL5.5.11

这几天用JBPM4.4来开发,集成的时候硬是弄不进数据库
2011-04-25 17:18:48 信息 [org.hibernate.cfg.Environment] Hibernate 3.3.1.GA
2011-04-25 17:18:48 信息 [org.hibernate.cfg.Environment] hibernate.properties not found
2011-04-25 17:18:48 信息 [org.hibernate.cfg.Environment] Bytecode provider name : javassist
2011-04-25 17:18:48 信息 [org.hibernate.cfg.Environment] using JDK 1.4 java.sql.Timestamp handling
不管是启动服务器还是用ant报错!

看带的例子里谢德是mysql方言使用org.hibernate.dialect.MySQLInnoDBDialect,问题就出在这里,要使用MySQL5InnoDBDialect才行。(http://stackoverflow.com/questions/5231325/mysql-5-5-9-and-hibernate-table-creation-error-on-type)
真是蛋疼





今天数据库一直报错Data truncated for column 'hot' at row 1,上网搜索无果,最后的处理方式在my.ini里找到 sql-mode=“STRICT_TRANS_TABLES,NO_AUTO_Create_USER,NO_ENGINE_SUBSTITUTION” 把其中的 STRICT_TRANS_TABLES, 去掉,然后重启mysql就ok了。
(http://www.wumingx.cn/post/270.html)

猜你喜欢

转载自cyzgbw.iteye.com/blog/1017294