-->
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: Indexed collection with NOT NULL constraint deletion issue
PostPosted: Fri Jun 04, 2004 11:55 am 
Regular
Regular

Joined: Tue Dec 09, 2003 2:39 pm
Posts: 106
Location: Toronto, Canada
A question regarding deletion of child collections which are indexed (i.e. a List) that have NOT NULL constraints on the foreign key in the child table.

We are aware that Hibernate suggests the usage of bi-directional association where there is a NOT NULL constraint in the child table, otherwise this will cause a constraint violation when trying to delete a child or children from the parent entity.

However, we have a requirement for an indexed collection, which do not support bi-directional ass., and would like to know how it is possible to delete these children if there is a FK with a NOT NULL constraint in the child table?

Is it possible? Should we be using a bag and managing the index ourselves?

Cheers,
Roll


Top
 Profile  
 
 Post subject: Seeking Advise
PostPosted: Mon Jun 07, 2004 9:59 am 
Regular
Regular

Joined: Tue Dec 09, 2003 2:39 pm
Posts: 106
Location: Toronto, Canada
Is this question so absurd that it doesn't require a response? We've scowered the forum and reference docs to no avail.

Any suggestions are appreciated.

Regards,
Roll


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 07, 2004 10:15 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Managing the index yourself is the only option if you need a bidirectional indexed collection - see the wiki, there is a page on that.


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.