There is nothing wrong, but the stuff I'd like to do is implement the
use of oracle sequence for primary key for websphere. So a way to do it
is to create an external class KeyHelper and instantiate it in the
ejbCreate. This should be transparent for the programmers in my project
so xdoclet seems to be a good idea for that and it is used inside the
project to generate home , remote and other things. So do you know a
way to do my modification with XDoclet ? Thanks a lot for all the response you can provide. Regards, Denis Boutin. Konstantin Priblouda wrote: --- boutin <[EMAIL PROTECTED]> wrote:Hi, I've got series of classes (EJBs) which their home & remote interface are generated by XDoclet1.2.1. And, I'd like to modifiy the ejbCreate of the EJB method if a specific argument is passed to the ant instruction. So I've decided to use : <template destinationFile="{0}.java" templateFile="transform-ejb-cmp.xdt" mergeDir="${merge.dir}"/> My question : is it possible to have the transform-ejb-cmp.xdt file like that --> <XDtEjbComment:comment> As there is a lot of different file in the project, I only need to modify the one which are of a CMP entity type </XDtEjbComment:comment> <XDtEjbCmp:ifEntity> * [here I need to recopy all the stuff from the original file to the last line of ejbCreate()]* // several specific java instruction System.out.println("test"); * [here I need to recopy all the stuff from the original file to the last line of ejbCreate() to the last line of file]* </XDtEjbCmp:ifEntity>what's wrong with super.ejbCreate() ? IMHO, xjavadoc does not look inside methods and does not provide their code to template. regards, ===== ----[ Konstantin Pribluda ( ko5tik ) ]---------------- Zu Verstärkung meines Teams suche ich ab Sofort einen Softwareentwickler[In] für die Festanstellung. Arbeitsort: Mainz Skills: Programmieren, Kenntnisse in OpenSource-Bereich ----[ http://www.pribluda.de ]------------------------ __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user |
- [Xdoclet-user] jboss.ejb-local-ref tag Not Generated ... Teck Hooi Lim
- [Xdoclet-user] use of xdoclet to generate part o... boutin
- Re: [Xdoclet-user] use of xdoclet to generat... Konstantin Priblouda
- Re: [Xdoclet-user] use of xdoclet to gen... boutin
- Re: [Xdoclet-user] use of xdoclet to... Konstantin Priblouda