General

The following table lists properties available in the General page of the persistence.xml Editor.

Property Description Default

General



Name

Enter the name of the persistence unit.

Defines the <persistence-unit name> element.

The project name

Persistence provider

Enter the name of the persistence provider.

Defines the <provider> element.

Determined by the server

Description

Enter a description for this persistence unit. This is an optional property.

Defines the <description> element.


Managed Classes



Classes

Click Add to add a new class, or select an existing class and click Remove, to add or remove the classes managed through the persistence unit.

Defines the <class> element.

Select a class and click Open to modify the class in the editor.


Exclude Unlisted Classes

Select to include all annotated entity classes in the root of the persistence unit.

Defines the <exclude-unlisted-classes> element.

False

XML Mapping Files



Files

Click Add to select an XML mapping file, or select an existing file and click Remove, to add or remove an object/relational mapping XML files that define the classes to be managed by the persistence unit.

Defines the <mapping-file> element.

Meta-INF\orm.xml

Exclude default EclipseLink XML mapping file

Select to include all annotated EclipseLink mapping files. Defines the eclipselink.exclude-eclipselink-orm property element.Note: This field applies only when using EclipseLink JPA implementation

False

JAR Files



Files

Click Add to select a JAR file, or select an existing file and click Remove, to add or remove JAR files and libraries in the persistence unit.