Creating relationships between enterprise and entity beans in EJB 3.0 and JPA projects by using domain modeling class diagrams

You can use domain modeling class diagrams to create relationships between enterprise beans and JPA entities, such as inheritance, reference, and entity relationships in Enterprise JavaBeans 3.0 (EJB 3.0) and Java™ Persistence API (JPA) projects.

Before you begin

You must have a domain modeling class diagram open that contains enterprise beans and JPA entities.

About this task

You can create only single-table inheritance between JPA entity beans.

Procedure

  1. In the Palette, on the Create tab, under EJB or JPA, click a relationship type.
  2. Click a child or source enterprise bean or JPA entity bean and drag to a parent or target enterprise bean or JPA entity bean.
  3. Release the mouse button.

Feedback