On Fri, 2004-04-02 at 23:28, Jim Kennedy wrote: > Is there a way to embed a method in a Value Object after it has been > generated to Xdoclet? Has anyone done this? Simple code example would be > good. Thanks.
According to http://xdoclet.sourceforge.net/ant/xdoclet/modules/ejb/entity/ValueObjectSubTask.html there's a valueobject-custom.xdt merge point in the template, for "A text file containing custom template and/or java code to include in the value object class." If it's a method that you want to include in all the VOs, just put it in that. If you only want to add it to certain VOs, or add different things to different VOs, you could create a valueobject-custom.xdt merge file that just contains <XDtMerge:merge file="VO-custom-{0}.xdt"></XDtMerge:merge> to add a per-bean merge point yourself. Or raise an enhancement request for it in JIRA and wait. Andrew. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
