EJB Transformations

Return to Introduction  Previous page  Next page

The purpose of the EJB Session Bean Transformation and the EJB Entity Bean Transformation is to reduce the work required in generating the internals of Enterprise Java Beans, thus enabling you to concentrate on modeling at a higher level of abstraction.

The EJB Session Bean Transformation generates the following from a single class element containing the attributes, operations and references required for code generation by the javax.ejb.* package:

·An implementation class element
·A home interface element
·A remote interface element.

The EJB Entity Bean Transformation generates the following from a single class element containing the attributes, operations and references required for code generation by the javax.ejb.* package:

·An implementation class element
·A home interface element
·A remote interface element
·A primary key element.

Both transformations also generate a META-INF package containing a deployment descriptor element.

Consider the following standard Platform-Independent Model (PIM):

PIM

From this PIM you can generate a set of Entity Beans, where each one takes the form shown (for the Account class) below:

PSM_EntityBean