I have a situation where there is a bean Group that may contain many Person beans. Then, I need to display a HTML page like this:

GroupId | Person Name | Person other junk
1 Zorzella ....
1 Malmsteen ....
2 Steve Vai ....
(...)

Where the "GroupIds" are clicable, and would take the user to a page about that group, etc.

My problem is this: if I use a XDoclet-generated Value object for Person, I'll need to declare Group as an aggregate for Person, and every time I call getPersonValue, there will be a call to fetch all the database fields of Group as well. If Group has a lot of fields, that becomes expensive. Even worse, if Group is also part of something else that I need to aggregate, then there will be even more calls, possibly even an infinite recursion (say there's an aggregate "creatorMember" in Group!). What should I do? I think I can't have the FK in Person be CMP, can I (I'm using JBoss)? Should I not use Value objects at all?

Thanks,

Zorzella



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to