-->
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: How to disable foreign key contratins on select
PostPosted: Fri Apr 01, 2005 12:31 pm 
Newbie

Joined: Mon Mar 01, 2004 3:41 pm
Posts: 9
Does anyone know if it's possible to disable data integrity check when doing a select for the whole object graph - using queries like "FROM Sometable t"?

i ran into a problem when one of the records has a reference (via a foreign key) to another object, and the other object does not exist since the record in the database has been deleted, i.e. the database is not enforcing foreign key constrains and has orphaned records.

What i want is to still have a result set, but with that faulty record left out, rather than let the whole query fail completely.

i'm using Hibernate 2 and PostgreSQL.

Thanks!


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.