Just a few thoughts...

Hicks, James wrote:
> "What I am trying to do is allow lazy-loading of related objects from data
> object. So it contains some finder-related methods, which go and fetch the
> data."
> 
> I like this idea: lazy loading Aggregated/Composed ValueObjects from
> ValueObject.  Maybe have the ValueObject use the aggregated/composed beans
> util object to do a lookup and retrieve the value object?  Could solve the
> problem of large data graphs, but at the cost of multiple network trips.  

Wouldn't that be the job of a good application server? As far as I 
understand this technology, the EJB container could do a much better job 
handling the lazy initialization for releations than a code 
generator--not meant in a negative way here--ever will.

> 
> Maybe add load-type="eager/lazy" to @ejb:value-object method tag.  The value
> object class would then have protected methods for doing a lookup to get the
> data from another entity bean.  Would also need a way to tell the
> ValueObject how to do the lookup: remote or local.  The get method in the
> entity bean would only load the aggregated/composed value objects if the
> load-type is eager.

I can see that with incorporating more such features in the near future 
XDoclet--and more important: my Bean source code--becomes more difficult 
to manage than the app server itself. That would be the point where a 
great tool becomes useless.


Just my $0.02, tom


_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to