On serverside.com, Ara stated regarding Danniel O'Connor's article on how to implement entity bean inheritance (http://www2.theserverside.com/resources/article.jsp?l=EJBInheritance):
<Ara on serverside> Yes, it's possible. All those if/else statements and even the ejbCreate/postCreate can be autogenerated into the derived implementation class. Anyway, note that XDoclet doesn't support 'data model inheritance', what Dan is talking about, but the rest of component inheritance is supported. So if you have Party and Corporation, XDoclet automatically generates remote/home/pk/etc for Corporation that correctly derives from PartyIntf/PartyHome/etc. Overall even with this kind of automation it's still an ugly workaround imho for one of EJBs biggest limitations. The biggest problem is that base entity has to know about derived entities, provide ejbCreate/etc for each of them and so on. Probably even this hard dependency can be cleanly handled in the derived implementation class XDoclet's <entitycmp/> subtask generates but you see it's not a neat solution really. </Ara on server side> I interpret Ara's message as stating that XDoclet partially supports Dan's suggestion for implementing entity bean inheritance. It seems that the part that isn't supported is that having to do with the way inheritance is implemented in the underlying database. If I've understood correctly, I would like to better understand which specfic XDoclet feature to use to implement the supported part, including subclass method delegation, and what I will have to do manually that isn't supported. Thanks, Chuck ------------------------------------------------------- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
