EntityExistsException occurs when trying to persist a new entity instance into database but that entity already exists in database.
The persistence provider will write an Insert statement for the persist operation.
And if the DB Manager executes that statement, the insert operation fails beacuse of PrimaryKey Constraint.
So that's why the EntityExistsException will occur.
-------------------------------------
LakshmiNarayana Kodali
SCJP 5(98%), SCWCD(100%), SCBCD in progress