hibernate NonUniqueObjectException

今天同事在使用hibernate时出现的异常,org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session;

查看了他的代码发现,持久化对象自增列ID没有标注为只增。

你可能感兴趣的:(hibernate NonUniqueObjectException)