At first I thought this was more of a CMR-specific problem. But how's an appserver to understand "depth read". Perhaps the change to the template would be in the relation accessors. What I'm thinking right now is that the contained relations aren't read until the first time they're actually used (accessed via the getXXX). I'm not sure what impact that would have regarding transactions, but it might be worth chewing on.

-- adam


From: "Brian Topping" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: <[EMAIL PROTECTED]> Subject: RE: [Xdoclet-user] defining self-referring / recursive CMR Date: Mon, 7 Jul 2003 13:15:42 -0400

> -----Original Message-----
> From: Adam Levine [mailto:[EMAIL PROTECTED]
> Subject: RE: [Xdoclet-user] defining self-referring / recursive CMR
>
> <snip/>
> It works, it's just not as clean as we'd like it to be.
> Hence, the desire
> for a depth read control.

There really isn't much concept of state in a template.  It's one level (no
aggregation), two levels (what I described) or infinite recursion (unbounded
aggregation) in this case.  It sounds like you've gone far enough with this
to realize that.  If you think you have some functionality that can improve
the template for the few without slowing it down for the many, please don't
hesitate to contribute!

If it were me, I would subclass the generated VO and override the methods for
looking up the aggregated CMR. The override class could have a field for the
recursion depth that you could set through an accessor. There's nothing
wrong or ugly about that, and it's a clean separation between the tool and
the environment that should be robust as people make changes so long as the
relation names don't change.


best,

-b


------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to