Andrew,
Thanks for your suggestions. I achieved what I wanted using the first of your
two options. I tried using the second as it seemed more elegant, but I found
that the {0} in the file parameter was not replaced.
Regards,
Michael Fabianski
>>> [EMAIL PROTECTED] 13/07/2005 23:41:16 >>>
On Wed, 2005-07-13 at 15:52, Michael Fabianski wrote:
> I would like to modify a generated value object for one of my EJBs by
> adding some additional methods. I've read about using the
> valueobject-custom.xdt merge point and looked at the template
> language, but I can't see how to write a template that will only
> generate the additional methods for the particular value object. Any
> advice has to how this can be accomplished would be much appreciated.
A couple of options spring to mind:
- in valueobject-custom.xdt, you could use the <XDtType:ifIsOfType> tag
to check for that particular EJB class, and it's body will only be added
to that one.
- in valueobject-custom.xdt, you could use the <XDtMerge:merge> tag to
add an additional per-bean merge point (include "{0}" in the file
parameter), and put your methods in an additional merge file for that
particular EJB.
Andrew.
-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user