Skip to main content

Eclipse Web Tools Platform 2.0
New and Noteworthy

Back

Dali JPA Tools

New JPA Project Configuration

    New Project configuration options have been added for M7 including the ability to choose between a server runtime implementation or a user defined implementation library. Also included is a Persistent Class Management section which controls how Dali handles the inclusion of Entities in a Persistent Unit. In general, if you are using a container that supports discovering Entities then you can select the "Discover annotated classes automatically". If you are outside the container, you can choose, Annotated classes must be listed in persistence.xml". This is the safest option if you are not sure which is right, since it should work for both cases.

    JPA Facet Config

JPA Annotation Value Code Completion

    The ability to use code complete inside JPA Annotations has been added in M7. This functionality works for most places where table and column names are specified in annotations, as well as choices for mappedBy.

    Here is an example of table completion:

    Table Completion

    Here is an example of column name completion:

    Column Completion

XML Descriptor Support

    The ability to add Persistent Types (Entities, etc) to the ORM XML has been added in this milestone. In addition, the ability to add non-default mappings has also been added. Right-click in the JPA Structure view tree to see these options.

    Add Persistent Type Dialog

New Mapping Options

    New mapping options have been added, including support for cascade on appropriate mapping types. In addition to the new options, the UI forms have been refined.

    One to Many Mapping

New JPA Project Configuration

    New Project configuration options have been added for M6 such as the ability to add a JPA User Library to your project.

    Create a New JPA Project
    Project Config

    Project Facet Configuration (no changes needed)
    Project Config

    Note New "JPA implementation library" selection - User Libraries are listed here
    Project Config

    You can configure a User Library to be the default JPA implementation library
    Project Config

    User Library Configuration
    Project Config

Validation

    General validation has been added for Java Source and ORM XML Descriptor. Validation has been updated for the persistence.xml file.

    "FooTable" does not exist on the database (Annotation validation)
    Java Validation

    "FooTable" does not exist on the database (ORM XML validation)
    ORM XML Validation

    ORM XML Validation
    Persistence.xml Validation
    Persistence Validation

XML Descriptor Support

    XML Descriptor support has been added to the UI and model. It behaves just like the Java Annotation UI, but also includes XML only properties. Both of these artifact types are configured in the same JPA Details view.

    ORM XML - JPA Structure
    XML Descriptor

    ORM XML - JPA Details
    XML Descriptor

Back to the top