Skip to Content
avatar image
Former Member

Using Abstract Base Classes for Entity Beans

Hello,

what i would like to do is use an abstract Base class in order to derive my EntityBeans from. We do have ~70 EntityBeans where each of the Beans needs the usual getId()/setId() for a common GUID in Entities, the creation(user|date), modification(user|date) and deletion(user|date) attributes including some common methods.

From the EJB Point-of-View this is no problem AFAIK, but the eclipse/netweaver GUI goes crazy when it comes to mapping the attributes from the abstract base to database columns. Instead of using my primary Key defined in the abstract base netweaver insists of creating an unknown primary key which i cannot get rid of.

Besides that everything looks ok,

Adding the base class manually in the java code the Together/J View in displays the EJB with the correct attributes from both the bean and the abstract base class.

Is there any know solution so we do not have to implement the common basics into every Entity ?

Regards, Udo

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Aug 13, 2004 at 11:11 AM

    Hello Udo,

    inheritance is a special issue for EJB. To get this I need more information on how you do this. I gues yoiu are using the data modeler to do this mapping?

    What does your model consist of? Have you chosen your abstreact claees to put in there?

    And what's next?

    Regards,

    Benny

    Add comment
    10|10000 characters needed characters exceeded