OK, I know, bad form to answer your own question.

I am now subclassing my own AbstractValueObject that provides the dirty flag, 
so I don't need to add my own templates.

Now I do have another question about using the aggregation and composition on 
value objects.  In the examples in the documentation, the CustomerEJB has 
abstract methods on it for getAddresses and getPrefferedProducts.  Following 
the example I added similar tags to my EJB.  However, upon looking at the 
generated code on the EntityBean it the addAddress method that is generated 
has a call back to getAddresses.  Yet there is no implementation.

Is it safe to assume that the method getAddresses on the bean implementation 
class should not really be abstract, but should be implemented on the XDoclet 
bean class?

Thanks again,
Phil

[EMAIL PROTECTED] said:

> All,
> 
> I am still a little new to Xdoclet (using beta2) and have a question for 
the 
> group.
> 
> I would like to be able to add a value to the value object that is not on 
the 
> entity.  Specifically, I want to be able to add a dirty flag to the value 
> objects.  I am thinking that the only way to do this is to write the 
template 
> that adds the dirty flag and appropriate getters and setters.
> 
> I just wanted to confirm that this is what must be done before I head down 
> the path of trying to figure out the template language.
> 
> Thanks in advance,
> Phil
> 



-- 





-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to