今天同事在使用hibernate时出现的异常,org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session;
查看了他的代码发现,持久化对象自增列ID没有标注为只增。
今天同事在使用hibernate时出现的异常,org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session;
查看了他的代码发现,持久化对象自增列ID没有标注为只增。
转载于:https://my.oschina.net/huangchp/blog/278744