--- Maik Hassel <[EMAIL PROTECTED]> wrote: > > Hello everyone, > > normally, when I create value objects with XDoclet, > setters and getters > are created taht reflect the methods of the original > bean. I now have to > modify this behavior in a way that - for a few > selected methods - only > getters are generated. So my idea was: > > a) Create a custom, boolean tag for the value object > task (e.g. > @getterOnly) that is picked up by the template file > b) Create a custom template file based on the > original one, thats reacts > to the custom tag. > > Question 1: Is this a feasible solution and/or is > there a betetr one? > Question 2: If yes: How would I do this? I knwo > there is probably tons > of documentation on this, but I don't really have > time to go through it > all, so if anyone has done something similar before > (custom tag???) and > could give me a quick overview, I would really > appreciate it!!!
I think you will have to create custom template in any case ( it got to react to your tags somehow ), and your custom tags. The best documentation is existing source - pick up module / subtask which looks suitable and get your inspirations from there. regards, ----[ Konstantin Pribluda ( ko5tik ) ]---------------- Plugins for xdoclet-2 are released. check it out at: http://www.sourceforge.net/projects/xdoclet-plugins/ ----[ http://www.pribluda.de ]------------------------ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ xdoclet-user mailing list xdoclet-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-user