hibernate错误集合
1.表名没对映射文件应出错:Could not locate field nor getter method for property named
2.数据库配置出错 :Unable to make JDBC Connection
3.实体类里面多对多集合:new HashSet<User>();:Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister
4.没写set里面的 cascade="save-update"导致:object references an unsaved transient instance - save the transient instance before flushing:
5.自己写的密码是String类型,怎么能用==来判断呢?
6.Unable to create requested service [org.hib…: 数据库配置问题,hibernate.cfg.xml不正确