ObjectDB ObjectDB

PersistenceContext.unitName - JPA annotation element

Annotation Element
String unitName

(Optional) The name of the persistence unit as defined in the persistence.xml file. If the unitName element is specified, the persistence unit for the entity manager that is accessible in JNDI must have the same name.
Default value:
JPA 1.0