if I declare a Light object (or if I just don't declare the composition/agregation to Group), I would end up with a PersonValue object that does not have the group_id as an attribute, and I would not be able to build the <A HREF> tags or even the GroupId column itself.
Zorzella
David Medinets wrote:
Have you tried to use a 'light' value object that only contains some of the attributes for Person (ie, specifically not including the Group informatio in the 'light' value object?----- Original Message ----- From: "Luiz-Otavio Zorzella" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 24, 2003 5:19 PM Subject: [Xdoclet-user] Help: Foreign keys and value objectsI 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
------------------------------------------------------- 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
