EJB Transformations

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.

The Platform-Independent Model (PIM):

PIM

After transformation generates a set of Entity Beans, where each one takes the following form (for the Account Class):

PSM_EntityBean