You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Bartosz Jankiewicz <ba...@eurobank.pl> on 2004/06/17 09:09:55 UTC

updating collections (newbie)

Hello,

I just started using OJB and following question arised. Is there a way
of updating referenced Collection without querying item objects from
database?
Example:
User object hava Collection of Role objects attribute. All aplicable
Role objects are already stored in database. Some view returns index
values pointing to Role objects. 
What to do before storing User object:
-Does broker have to retrieve appropriate Collection corresponding to
index values and then set user.roles attribute with this collection? 
-Or can I just create collection of blank Role objects, setting each of
them with appropriate index and setting Roles attribute of User object
with this collection? Or perhaps there is another (better) possibility
which I haven't noticed yet?

Best regards,
BJ


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org