PersistenceContext
Target: TYPE, METHOD, FIELD
- Implemented Interfaces:
- Annotation
 Expresses a dependency on a container-managed EntityManager and its associated persistence context. 
- Since:
- JPA 1.0
Public Annotation Attributes
String name default ""
- Since:
- JPA 1.0
 Vendor specific properties may be included in this set of properties. Properties that are not recognized by a vendor are ignored. 
- Since:
- JPA 1.0
- Since:
- JPA 2.1
- Since:
- JPA 1.0
String unitName default ""
 If the 
unitName element is specified, the persistence unit for the entity manager that is accessible in JNDI must have the same name. - Since:
- JPA 1.0