Home

 

JPA perspective

The JPA perspective provides you with the ability to manage relational data in Java applications using Java Persistence API by introducing new capabilities such as defining and editing object-relational mappings for EJB | .0 JPA entities and adding JPA support to a plain Java project.

Figure 4-18 JPA perspective

The important views of this perspective are as follows:

JPA Structure view-Displays an outline of the structure (its attributes and mappings) of the entity that is currently selected or opened in the editor.

JPA Details view- the JPA Details view displays the persistence information for the currently selected entity and show different tabs depending on whether the selection is on entity, attribute, or orm.xml.

You can work with JPA properties in either the JPA Details view or the Annotations view, so that you don't need to keep both views open at once. For clarity, the Annotations view distinguishes between implied and specified annotation attributes.



Figure 4-19 JPA Details view

More details about working with JPA are provided in Chapter | 2, Persistence using the Java Persistence API (JPA).

ibm.com/redbooks