|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value={TYPE,METHOD,FIELD}) @Retention(value=RUNTIME) public @interface PersistenceContext
The PersistenceContext annotation is used to express a dependency on a container-managed entity manager persistence context.
Optional Element Summary | |
---|---|
java.lang.String |
name
The name element refers to 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
The optional properties element may be used to specify properties for the container or persistence provider. |
PersistenceContextType |
type
The type element specifies whether a transaction-scoped or extended persistence context is to be used. |
java.lang.String |
unitName
The optional unitName element refers to 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |