EntityExistsException « Exception « JPA Q&A





2. Issue with EntityExistsException    forum.hibernate.org

As per our application design, we have been Hibernate EntityManager 3.2.1 in Weblogic Server 10.0. We do have an EmployeeMaster table where the unique constraint is applied on the Employee 'FIRSTNAME' field of this table. The Employee ID field has been designated as the primary key over here. While trying to persist a duplicate employee entity (with the same 'FIRSTNAME' that ...