-->
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: Constraint checking
PostPosted: Tue Apr 12, 2005 5:04 pm 
Newbie

Joined: Tue Dec 14, 2004 2:57 pm
Posts: 12
Who's responsability is it to check constraints? In the past I make the RDBMS do all the work of checking things like relationships, and then let the application know that something isn't allowed.
From the docs:
Quote:
all exceptions thrown by Hibernate have to be considered fatal

So a typo could mean closing the session? I'm not saying that's wrong, but it indicates to me that in the Hibernate world, either closing a session is thought of as no biggie, or it is considered a bug to try and update the DB with invalid data.

My question likely comes from a lack of understanding when a Sesssion should start and end...so I'll be back in the 'forum mines' if anybody needs me.


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.