| Joined: Thu Jul 21, 2005 10:17 am
 Posts: 17
 | 
				
					| The problem is :
 
 After i run "DELETE COMMAND" and delete an entity and Database throw ConstraintViolationException (fine... because i'm deleting the parent , not the child) the EntityManager throws javax.persistence.EntityExistsException: org.hibernate.exception.ConstraintViolationException: could not execute update query
 
 
 
 The question is:
 
 Why javax.persistence.EntityExistsException ? this is ok with the spec ? This is not EntityExistsException  is ConstraintViolationException... the natural is the hibernate throw new javax.persistence.PersistenceException ?
 
 
 Tnks !
 
 
 |  |