NonUniqueObjectException « Table « JPA Q&A





1. Table per concreteclass throws NonUniqueObjectException    forum.hibernate.org

Newbie Joined: Sat Nov 26, 2011 11:14 am Posts: 3 I have an abstract class and two concrete class which extend these abstract class. I have mapped all the three in a employee.hbm.xml file. It is throwing the following error. My db is mysql Quote: Exception in thread "main" org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated ...

2. NonUniqueObjectException when trying to re-import db table    forum.hibernate.org

Ok, I have done some research and now I know that Hibernate does not delete entitites from its session when they are deleted with HQL mass deletes. I am now doing the deletion with a ScrollableResults, deleting every entity one by one, which works but sucks. The sessions evict() method only accepts single entitites, and the SessionFactories mass evict facilities only ...