PersistenceContext.unitName - JPA annotation element

Annotation Element
javax.persistence.PersistenceContext
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:
""
Since:
JPA 1.0