You could put all common code into an abstract data object and use the tag:
* @ejb:data-object extends="AbstractData" The data object generated will extend your AbstractData so the common methods will be accessible. bye, daniele Ara Abrahamian wrote: > All templates have a set of merge points. You should define afile named > dataobject-custom.j and copy it where mergeDir parameter of ejbdoclet > points to. Dataobject will pick it on the fly and merge it. > If a template doesn't have such a merge point it's a bug. > > Ara. > > >>-----Original Message----- >>From: [EMAIL PROTECTED] [mailto:xdoclet-user- >>[EMAIL PROTECTED]] On Behalf Of Jozsa Kristof >>Sent: Monday, December 03, 2001 6:19 PM >>To: [EMAIL PROTECTED] >>Subject: [Xdoclet-user] include custom function to data object >> >>Hello, >> >> how can I include a function of mine into the XDoclet generated data >>object? I'd like to implement a toXML() function to each of my data >>classes >>to represent/convert the attributes of the object into an XML string >> > using > >>Castor. Is there any easy way to do this? >> >>Regards, >>Christopher _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
