-->
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: Update one side from many side (OneToMany) in interceptor
PostPosted: Mon May 18, 2009 11:37 am 
Regular
Regular

Joined: Tue Feb 17, 2009 5:13 am
Posts: 59
Hi all.

I need to do this (pseudocode):

Code:
a.getBs().add(b);
persist(a);
intercept a and with b collection loaded.


Notice that the first intercepted object is a and then each b of its collection.
So, when a is intercepted, bs collection is not loaded, but when each b is interepted, I can't modify related a becouse, actually, the relation is trough AB class.

Anybody knows how could I do that?

Thanks.

_________________
Born to lose... live to win!


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.