-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: EntityExistsException on ConstraintViolationException
PostPosted: Mon Jul 31, 2006 5:23 pm 
Newbie

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 !


Top
 Profile  
 
 Post subject: any help?
PostPosted: Wed Aug 02, 2006 8:41 am 
Newbie

Joined: Thu Jul 21, 2005 10:17 am
Posts: 17
any help ?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 07, 2006 1:12 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I don't understand.
Can you provide a minimal test case?

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.