A wise old hermit known only as Konstantin Priblouda
<[EMAIL PROTECTED]> once said:
> --- [EMAIL PROTECTED] wrote:
> > I am hoping that someone can give me advice on
> > somehow adding code to
> > the set<Entity>Value method automatically generated
> > by the value-object
> > facility.
> >
> > Right now, for all of my cmp entity beans, I'm
> > coding a method,
> > update<Entity>Value, that calls same two methods
> > (see asterisks below).
> > I could do away with these methods if I knew how to
> > get code added to
> > the set<Entity>Value method auto generated by the
> > value-object facility.
> >
> >
> >
> > public void
> > updateResourceValue(ResourceValue value) {
> > ** value.setMaintenanceDate(new
> > Timestamp(new
> > Date().getTime()));
> > **
> > performOptimisticConcurrencyCheck(value);
> > setResourceValue(value);
> > }
> >
> > Is this something that can be accomplished with
> > merging (which I haven't
> > attempted before), or is there another, perhaps
> > better or easier, way?
>
> Yes, you can do this with merging. That's good news.
> Bad news (not really) is that there is no defined
> merge point where you like it to have.
>
> But it's not a bog problem. Extract template in
> question from jar file, add merge point there
> ( with merge tag ) and feed this template file
> to your subtask instead of original one.
>
> Put int your merge file whatever you like to appear in
> your method.
Also, raise an enhancement request for a suitable merge point to be added.
That way you don't end up having to maintain your customized template long
term...
Andrew.
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user