I have the same kind of things (hierarchy between beans repeated in data
objects, or the other way ;). Basically, limitation will be that you
can't generate a bean that extends another bean. If you need to you
introduce intermediate class, that is "abstract" - you do not create
bean for it - and then extend it twice. Also if you want to have unified
interface you might consider creating something like get() method, which
will return base class for your hierarchy and call getData() inside.
Hope that helps.
--ME
Date: Wed, 2 Oct 2002 02:03:57 -0600
Subject: [Xdoclet-user] primary key generation
I'm a newb to this so please be gentle. 8^)=3D
I have these tags:
* @ejb:persistence=09=09column-name=3D"ID"
* @ejb:pk-field
public abstract long getID();
and it generates the code:
public UserPK getPrimaryKey() {
UserPK pk =3D new=20
UserPK(this.getID(),this.getPassword(),this.getName(),this.getEmail());
return pk;
}
I have beans that extend each other and that method won't compile
because=
the=20
return type changes. How do I tell it what PK object to use? And why
do=
es=20
it generate that when I tell xdoclet that the ID field is fetched with
ge=
tID?
Thanks.
cheeser
End of Xdoclet-user Digest
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user