Property Page – JPA Diagram Editor Options

This table lists the properties available in the JPA Diagram Editor Settings page.

Property Description/Action
Folder for diagrams Specifies the folder where the diagram.xmi file will be created.
Default Java package Specifies the Java package where the persistent types will be created by default.
Default table name prefix Specifies the prefix with which the tables will be created by default.
Editing persistent type name Determines if the editing of the persistent type name in the diagram should affect the class name in the source file.
Persistent access type Specifies a persistent access type.
  • To add annotations on a field level, choose Field-based.

  • To add annotations on a property level, choose Property-based.

Default collection type Specifies a collection type in which the relation attributes to be created by default:

Choose java.util.Collection, so that the relation attributes to be of type Collection.

One-to-Many unidirectional old style relationship Determines if the old-style One-to-Many unidirectional relationship (supported by JPA 1.0) to be used.
XML entity mappings Determines if the persistent type should be added in the specified orm.xml file.