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.  [ 2 posts ] 
Author Message
 Post subject: Disable a foreign key
PostPosted: Fri Nov 07, 2008 6:16 am 
Newbie

Joined: Fri Nov 07, 2008 6:08 am
Posts: 1
Hello,

I would like to know if it's possible to disable a single foreign key constraint on a many-o-one relation for insertion because my data contains a circular dependency (A refers to B, and B refers to A).

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 07, 2008 7:28 pm 
Expert
Expert

Joined: Mon Nov 26, 2007 2:29 pm
Posts: 443
Whatever FK disabling you want to do, it has to happen at a database level. Hibernate has nothing to do with it, unless you had generated your DB from the mapping file.

_________________
Gonzalo Díaz


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.