I don't think it's needed for most cases. So I veto this :-) But to make your life easier I added util-custom.j merge point to util.j, so just put the your custom stuff into a file named util-custom.j and put it in where the mergeDir parameter of ejbdoclet points to. Ejbdoclet will pick it up and add it to the template and generate it!
Ara. > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:xdoclet-devel- > [EMAIL PROTECTED]] On Behalf Of Neale Swinnerton > Sent: Thursday, November 29, 2001 8:21 PM > To: [EMAIL PROTECTED] > Subject: [Xdoclet-devel] Utility Method > > Hi, > > I need to extract the PK from a Data object. I've written a template (ie > .j ) snippet to generate a method of the form ... > > // method to extract the PK from a Data object. > public CustomerPK getPKFrom(CustomerData data) { > CustomerPK pk = new CustomerPK(); > pk.setCustomerIdf(data.getCustomerId()); > > ... > > return pk; > } > > I've put it in the util.j template, although I was split whether it should > be in the Data object. If you want to include it a patch is attached. I'll > leave it to you to decide where it should 'really' go. > > -- > regards > > Neale Swinnerton _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ Xdoclet-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-devel
