hibernate 保存出错:
org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [com.scyd.entity.ProviderProduct#6]
解决方法:在DAO层保存数据时使用merge方法替换save方法
hibernate 保存出错:
org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [com.scyd.entity.ProviderProduct#6]
解决方法:在DAO层保存数据时使用merge方法替换save方法