-->
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: many-to-many and cascade
PostPosted: Tue Jan 27, 2004 3:23 pm 
Newbie

Joined: Thu Dec 11, 2003 12:14 pm
Posts: 8
Hi All,

I have three tables A, A_B and B. One relationship many-to-many with A and B (using the table A_B). The object A has the collection of B's, and B does not know about A.

The mapping in A has cascade=all.

I want to A create the rows in A_B and do not try to do anything in B. If this is possible, what cascade would I use ?

I looked for information about cascade in the documentation, but I couldn't find too much information about there behavior.

Thanks a lot,

Sergio

_________________
[]


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 27, 2004 6:31 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Changing the set without creating new objects will never update the B table, regardless of the cascade ... i dont get your problem.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 28, 2004 2:58 pm 
Newbie

Joined: Thu Dec 11, 2003 12:14 pm
Posts: 8
Hi gloeglm,

thank you for your help. Actualy, I was having an error, and I didn

_________________
[]


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.