F
fworsley
Hi,
I'm trying to find out if it is possible to inhert EJB relations
defined by xdoclet from a superclass. What I mean is, imagine I have a
class AbstractPersonBean. The class defines an ejb.relation to an
AddressBean since every person has an address. Now I want to create
several concrete implementations of AbstractPersonBean, such as
StudentBean, TeacherBean, etc. Each of these classes may define
additional ejb.relations but I want them all to "inherit" the relation
defined in the abstract super class.
With xdoclet I cannot get this to work. It always generates a
deployment descriptor where it assumes AbstractPersonBean is a real
bean and it has the relation to AddressBean. Of course it isn't a real
bean, so the app server barfs during the deploy.
Anyone have an idea of how I can make this work, if at all? I really
don't want to duplicate the ejb.relation in every concrete subclass. I
am unfortunately limited to using EJBs here, Hibernate et al is not an
option.
- Frank
I'm trying to find out if it is possible to inhert EJB relations
defined by xdoclet from a superclass. What I mean is, imagine I have a
class AbstractPersonBean. The class defines an ejb.relation to an
AddressBean since every person has an address. Now I want to create
several concrete implementations of AbstractPersonBean, such as
StudentBean, TeacherBean, etc. Each of these classes may define
additional ejb.relations but I want them all to "inherit" the relation
defined in the abstract super class.
With xdoclet I cannot get this to work. It always generates a
deployment descriptor where it assumes AbstractPersonBean is a real
bean and it has the relation to AddressBean. Of course it isn't a real
bean, so the app server barfs during the deploy.
Anyone have an idea of how I can make this work, if at all? I really
don't want to duplicate the ejb.relation in every concrete subclass. I
am unfortunately limited to using EJBs here, Hibernate et al is not an
option.
- Frank