hibernate
actionzxz
这个作者很懒,什么都没留下…
展开
-
Hibernate使用ServiceRegistryBuilder出错
Hibernate使用ServiceRegistryBuilder出错原因:版本4之后的Hibernate中buildServiceReguistry()方法被替换了。解决方法:(1)版本导入更换为:import org.hibernate.boot.registry.StandardServiceRegistryBuilder;(2)在版本4中的用法:Configurat...原创 2018-09-10 22:08:35 · 947 阅读 · 0 评论 -
使用Hibernate报错:MySQL server version for the right syntax to use near 'type=InnoDB' at line xxx
使用Hibernate报错:MySQL server version for the right syntax to use near 'type=InnoDB' at line xxx原因:(1)某些版本的mysql不支持type写法。(2)实际上,在MySQL5.0以前,type=InnoDB是有效的SQL语句,MySQL5.0之后,type=InnoDB不再有效了。 解决办法...原创 2018-09-10 22:09:17 · 3713 阅读 · 1 评论