Charlene Mitchell wrote:

Though the problem is how to get the Addresses in the
first place. Because, in order to avoid the re-entrant
problem I would have to get an EmployeeLight value
object from the DepartmentNormal Value Object. And
because it is Light it means that I have reached a
dead-end in my relation tree (I cannot go any deeper).

Not necessarily. You just need to avoid circular references -- so, while you don't form circular references, you can construct your value object tree as deep as you want it.

So you could have something like EmployeeValue --> AddressValue -> CityValue --> StateValue --> EmployeLightValue. Just make sure you don't go round, or the construction of value objects would end up in an infinite loop.

BTW: "Light" Value Objects isn't a hard definition. It's just a way many people find to avoid the circular references: a value object without the circular relationships.

--
MB



-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user


Reply via email to