cancel
Showing results for 
Search instead for 
Did you mean: 

Using Abstract Base Classes for Entity Beans

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Benny
Product and Topic Expert
Product and Topic Expert
0 Kudos

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