Bugs item #516890, was opened at 2002-02-13 11:51 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=402704&aid=516890&group_id=31602
Category: ejbdoclet Group: cvs Status: Open >Resolution: Fixed Priority: 5 Submitted By: Andrew Stevens (stevensa) >Assigned to: Vincent Harcq (vharcq) >Summary: "Component inheritence" problem? Initial Comment: I've got an AbstractEntityEJB superclass for my entity beans with ... * @ejb:bean name="AbstractEntity" generate="false" type="BMP" */ public abstract class AbstractEntityEJB implements EntityBean ... My other entity beans use e.g. ... * @ejb:bean name="ReportBatch" type="BMP" */ public abstract class ReportBatchEJB extends AbstractPFDEntityEJB implements EntityBean ... I get the various interface/pk/dataobject classes I'd expected generated for both AbstractEntity and ReportBatch, however the generated ReportBatch classes don't extend the AbstractEntity ones unless I add class-level tags * @ejb:home extends="AbstractEntityHome" * @ejb:interface extends="AbstractEntity" * @ejb:data-object extends="AbstractEntityDataObject" * @ejb:pk extends="AbstractEntityPK" I thought the "component inheritence" was meant to take care of this without having to add these tags everywhere? ---------------------------------------------------------------------- >Comment By: Vincent Harcq (vharcq) Date: 2002-04-02 14:37 Message: Logged In: YES user_id=125677 This is a big stuff. It works better now on samples There is great chances I forgot some cases. Basically now CustomerHome extends PersonHome extends EJBHome with CustomerBean (impl EntityBean) extends PersonBean (impl EntityBean) extends BaseNeityBean (impl nothing) I think it is the best we can achieve. No need for generate false in BaseEntityBean No need for ejb:home extends in CustomerBean ---------------------------------------------------------------------- Comment By: Andrew Stevens (stevensa) Date: 2002-02-14 18:56 Message: Logged In: YES user_id=247081 With AbstractEntityEJB implements EntityBean and ReportBatchEJB extends AbstractEntityEJB it looks mostly okay, except that: 1) the getData and setData methods get included in both remote interfaces (both with the abstract data object as argument/return type, though). 2) the generated setData in the ReportBatchBMP doesn't copy any of the data out of the argument, just sets this.dataHolder = null (presumably because the abstract entity's data object had no fields in). ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2002-02-13 21:36 Message: Logged In: NO I guess the problem is: AbstractEntityEJB implements EntityBean and ReportBatchEJB implements EntityBean too. Sure this is a bug, but you can workaround it. Just declare one of those implements statements. Ara. ---------------------------------------------------------------------- Comment By: Andrew Stevens (stevensa) Date: 2002-02-13 11:55 Message: Logged In: YES user_id=247081 NB "ReportBatchEJB extends AbstractPFDEntityEJB" should read "ReportBatchEJB extends AbstractEntityEJB" (I edited the names after pasting them into IE, but missed one) ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=402704&aid=516890&group_id=31602 _______________________________________________ Xdoclet-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-devel
