I created a parent class that my entity bean extends.  In the parent class,
I added the methods with
@ejb.interface-method, leaving off the @ejb.persistence.
The generated value object extends the methods-only parent class and it
works just fine, the extra methods are accessible from my value object.
This way I was able to avoid the merge-point, which I haven't tackled yet.
I suppose I didn't need the parent class, but I like keeping the database
representation seperate from the extra methods.
/Lorraine

-----Original Message-----
From: Harkness, David [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 15, 2004 4:40 PM
To: [EMAIL PROTECTED]
Subject: RE: [Xdoclet-user] request for ejb.valueobject-method


Andrew Stevens wrote:
> On Thu, 2004-04-15 at 21:46, Harkness, David wrote:
>> I thought there was a merge-point for value objects, but looking in
>> the template I do not see one.
> 
> There isn't?  What happened to valueobject-custom.xdt, as
> listed at
> http://xdoclet.sourceforge.net/ant/xdoclet/modules/ejb/entity/
> ValueObjectSubTask.html ? 

Crikey! (sp) ... I was looking in entity-value.xdt instead of
valueobject.xdt. My bad. At the bottom of the latter is

   <XDtMerge:merge file="valueobject-custom.xdt">
   </XDtMerge:merge>

So there ya go. Of course, that means *one* custom merge point for *all*
value objects, instead of one for each entity bean. Please tell me I at
least got that right. :) If so, then you could make it one-per-bean by
changing it to "valueobject-custom-{0}.xdt", correct?

Sorry for the mixup.

David Harkness
Sr. Software Engineer
Sony Pictures Digital Networks
(310) 482-4756


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user


This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified that
any dissemination, distribution or copying of this e-mail is prohibited. If
you have received this e-mail in error, please notify the sender by replying
to this message and delete this e-mail immediately.


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to