Modifying the persistence unit details

Use the Persistence XML editor to modify the properties of your persistence units.

Procedure

  1. Open the persistence.xml file in the Persistence XML editor.
  2. Click the persistence unit.
  3. Modify the properties of the persistence unit as described in the following table:
    Table 1. Persistence unit details
    Attribute Description
    Name The name of the persistence unit. The name attribute is required.
    Description A description of the persistence unit.
    Provider Name of the javax.persistence.spi.PersistenceProvider class interface for the persistence provider.
    Transaction Type Choose if it is a Java™ transaction API (JTA) or a non-JTA data source.
    JTA Data Source Global JNDI name of the JTA data source.
    Non-JTA data source Global JNDI name of a non-JNDI data source.
    Exclude unlisted classes False, by default. When set to True, classes that are not listed in the persistence.xml file are excluded from the persistence unit.
    JAR File The names of JAR files containing entities.
    Mapping File If you use a custom mapping file, list it here. (If you use the orm.xml file for mapping, it is read automatically.)
Icon that indicates the type of topic Task topic
Timestamp icon Last updated: July 17, 2017 21:58

File name: t_modify_persistenceprops.html