-->
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: More on initializing object with collection properties-Help!
PostPosted: Tue Jul 19, 2005 6:57 pm 
Newbie

Joined: Thu Jul 21, 2005 3:02 am
Posts: 11
Hi again.
Sorry for keep posting about initializing object structures but I can't get the ends to fit together.

Say I would like to initialize an object ObjA which has as a member collection "CollectionB" which can be reached by ObjA.CollectionB.

At some points I want that CollectionB contains elements where Year>2003 and sometimes I want CollectionB to contain objects where Year<2003. Is there some way that I can initialize CollectionB so that it will only contain the wanted elements. My problem is that I have to hand over ObjectA (initialized with the correct version of CollectionB) to a business function that cannot work with a detached collectionB??

How can this be done????

Regards Morten


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.