-->
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.  [ 1 post ] 
Author Message
 Post subject: Exception Handling in Hibernate JPA
PostPosted: Thu Oct 21, 2010 2:15 pm 
Newbie

Joined: Fri Jun 04, 2010 8:57 pm
Posts: 19
I wish to know what exceptions are thrown (Hibernate JPA spec) for some common situations listed below.

1. Database Constraints are violated when inserting or updating Entity (including unique constraints and foreign key constraints).
2. Searching for an entity but entity does not exist in the database or a NamedQuery returns no records
3. Entity has been read in memory and detached, another user edits and commits the same entity. The detached entity is merged back and tried to persist.

regards,
Nirvan


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

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.