版本問題解決后報異常ERROR: HHH000346: Error during managed flush [org.hibernate.exception.SQLGrammarException: could not execute statement]
結果是因為student表不存在,為什么我的hibernate不能自動創建表?
結果是因為student表不存在,為什么我的hibernate不能自動創建表?
2016-06-27
老師上傳的hibernate jar包是5版本以上,無法使用ServiceRegistryBuilder,5版本以上不用使用ServiceRegistry,直接使用Configuration configure = new Configuration().configure();
sessionFactory = configure.buildSessionFactory(); 不然一直報org.hibernate.MappingException: Unknown entity的錯誤,糾結死了。
sessionFactory = configure.buildSessionFactory(); 不然一直報org.hibernate.MappingException: Unknown entity的錯誤,糾結死了。
2016-06-27