From: Konstantin Priblouda [mailto:[EMAIL PROTECTED]
> You are not quite correct - it depends on templates,
> but xdoclet will mostly look into superclases.

Really? Oh man, I wish I had posted that a month ago. :)

I have a BaseEJB that all my entity beans subclass, but all it does is implement the 
EJB methods (remove, set context, passivate, etc). What I'd love is to have it handle 
the basic bean needs: accessors (and XDoclet tags) for ID, createdDate, modifiedDate, 
and versionNum. It would be nice to have some class-level tags specified by it as well:

 * @ejb.bean
 *      view-type="local"
 *      type="CMP"
 *      cmp-version="2.x"
 *      primkey-field="id"
 *
 * @ejb.transaction
 *      type="Required"

Is this possible? It may be that the accessor inheritance won't work due to how EJBs 
work, but as I didn't attempt it I'm unclear if that's doable.

Of course, this is yet more reason to go with Hibernate. :) I plan on taking a little 
time this weekend to check it out.

Thanks!

David Harkness
Sony Pictures Digital Networks
(310) 482-4756


-----Original Message-----
From: Konstantin Priblouda [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2003 1:30 AM
To: [EMAIL PROTECTED]
Subject: RE: [Xdoclet-user] Ant Build is ok, but the descriptor is empty



--- "Harkness, David" <[EMAIL PROTECTED]>
wrote:
> Hi Michelle,
> 
> Do you have the XDoclet tags in myBean.java (should
> that be
> MyBean.java?) or myBaseBean.java? From what I
> understand, Xdoclet will
> not look at tags from superclasses. Instead, you
> must override all the
> methods for which you want tags and replicate the
> class-level tags for
> each subclass.

You are not quite correct - it depends on templates,
but xdoclet will mostly look into superclases.



> Hi, all,
> 
> I'm trying to use XDoclet to generate some
> deployment descriptor for
> jboss. The ant build runs fine, but the ejb-jar.xml
> and jboss.xml have
> only template in it. I defined all the necessary
> tags in myBean.java.
> But myBean.java extends myBaseBean.java which
> implements SessionBean,
> would that be a problem when generating xml files?

1. Do you have myBaseBean on source path for xdoclet invocation? 2. Do you have 
javax.ejb.SessionBean on your class path for xdoclet invocation?

regards,

=====
----[ Konstantin Pribluda ( ko5tik ) ]----------------
Zu Verst�rkung meines Teams suche ich ab Sofort einen Softwareentwickler[In] f�r die 
Festanstellung. 
Arbeitsort: Mainz 
Skills:  Programieren, Kentnisse in OpenSource-Bereich
----[ http://www.pribluda.de ]------------------------

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com


-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user


-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to