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.  [ 4 posts ] 
Author Message
 Post subject: problems with ternary association and cascades
PostPosted: Thu Dec 11, 2003 2:04 pm 
Newbie

Joined: Thu Dec 11, 2003 6:21 am
Posts: 8
Hi all,

I've been trying to map following scenario with no luck:

Code:

A--ABC--B
     |
     C



When any of A, B or C is deleted should ABC be also deleted, but A,B and C should not be deleted (except for the one that was meant to be deleted, of course). I'd prefer to have a map in A (key b, value list of C's) as it'd fit best for my domain model, but I haven't been able to get cascading work for the key.

What I'd like to know is what would be recommended practice for mapping this kind of relationships and if one could get cascading work for the key of the map also. I'm sorry I can't share my actual mapping or code, but if it's needed I could post modified versions of them.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 11, 2003 7:16 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Hibernate does not support cascades for collection indexes (its not at all hard to implement, incidently .... it just never seemed that useful).


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 12, 2003 3:02 am 
Newbie

Joined: Thu Dec 11, 2003 6:21 am
Posts: 8
Ok, thanks for the answer (and for the great product!).

Are there any plans to support cascading also for the indexes in the future..?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 12, 2003 4:25 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
you can always request it - and if other people vote for it, probably someone will get round to it


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