--- [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. 

regards,

=====
Konstantin Priblouda ( ko5tik )    Freelance Software developer
< http://www.pribluda.de > < play java games -> http://www.yook.de >
< render charts online -> http://www.pribluda.de/povray/ >

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


-------------------------------------------------------
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

Reply via email to