Show TOC

JPA PerspectiveLocate this document in the navigation structure

Definition

The JPA perspective of the SAP NetWeaver Developer Studio provides tools for creating and managing Java persistent entities.

Use

You use the JPA perspective to:

  • Create entities

  • Edit entities

  • Set persistence properties of entities and their fields

  • Set mappings between entities and database tables

  • Set inheritance and relationship mappings

To open the JPA perspective, choose Start of the navigation path Window Next navigation step Open Perspective  Next navigation step Other Next navigation step JPA End of the navigation path.

Structure

The JPA perspective contains the following views:

  • JPA Structure

    You use the JPA Structure view to browse entities and their fields. The JPA Structure view uses meaningful icons to indicate entity and field mapping.

  • Outline

    You use the Outline view to browse package and import declarations, entity classes and their fields and methods.

  • JPA Details

    In the JPA Details view, you:

    • Map Java classes as entities

    • Change entities' fields

    • Set mappings of entities and fields to database tables and schemas

    • Edit persistence properties

    • Map inheritance

    • Map relationships

    • Generate primary keys

Integration

Additionally, the Developer Studio provides the following views that enable you to work with your database:

  • Data Source Explorer

    In the Data Source Explorer view you manage database connections and database tables. You can create a connection, reconnect to the database, and interact with the database runtime.

  • SQL Results

    In the SQL Results view, you monitor operations on database tables.

More Information

For more information about the JPA development tools, refer to the “Dali Java Persistence Tools User Guide” , provided by the Developer Studio help content.