posted 16 years ago
In persistance spec 3.7:
"
The EntityExistsException may thrown by the persistenc
operation is invoked and the entity already exists. The E
thrown when the persist operation is invoked, or the Enti
PersistenceException may be thrown at commit time. "
But in the study guide:
"
For a given entity A, the persist method behaves as follows:
If A is an existing MANAGED entity, it is IGNORED. However, the persist operation
cascades as defined below. "
Isn't the two contradictory? If one invokes persist(A) where A is a managed entity and surely already exists, will this persist() be ignored or an EntityExistsException be thrown?
Houston Rockets go go go!