I was going through the JPA 2 specification and found two statements that sounds contradictory to me.
"If X is a preexisting managed entity, it is ignored by the persist operation." - Pg 76
"The EntityExistsException may thrown by the persistence provider when the persist operation is invoked and the entity already exists." - Pg 129
The statement 1 says something that sounds different from statement 2. So, my question is what is the difference between "preexisting managed entity" and "entity already exists"?