|
EclipseLink 1.1.4, build 'v20100812-r7860' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value={TYPE,METHOD,FIELD}) @Retention(value=RUNTIME) public @interface PersistenceContext
Expresses a dependency on an EntityManager
persistence context.
Optional Element Summary | |
---|---|
java.lang.String |
name
The name by which the entity manager is to be accessed in the environment referencing context, and is not needed when dependency injection is used. |
PersistenceProperty[] |
properties
Used to specify properties for the container or persistence provider. |
PersistenceContextType |
type
Specifies whether this is a transaction-scoped persistence context or an extended persistence context. |
java.lang.String |
unitName
The name of the persistence unit. |
public abstract java.lang.String name
public abstract java.lang.String unitName
public abstract PersistenceContextType type
public abstract PersistenceProperty[] properties
|
EclipseLink 1.1.4, build 'v20100812-r7860' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |