@InterceptorBinding @Documented @Inherited @Retention(value=RUNTIME) @Target(value={TYPE,METHOD}) public @interface Transactional
TransactionScoped which is an optional scope which can be used together with
@Transactional.| Modifier and Type | Optional Element and Description |
|---|---|
Class<? extends Annotation>[] |
qualifier
Optional qualifier/s which allow/s to start only specific transactions instead of one
for the injected
javax.persistence.EntityManagers. |
public abstract Class<? extends Annotation>[] qualifier
javax.persistence.EntityManagers.
Default-value is Any which means any injected javax.persistence.EntityManagers
should be detected automatically and transactions for all injected javax.persistence.EntityManagers
will be started. Or the Default javax.persistence.EntityManager
will be used, if no qualifier and no javax.persistence.EntityManager was found (in the annotated class)
(see DELTASPIKE-320).
This qualifier can also be used for integrating other frameworks,
which follow a different style (see DELTASPIKE-319) as well as the usage of
javax.persistence.EntityManagers with qualifiers in a called method (of a different bean)
which isn't Transactional itself.Copyright © 2011-2013 The Apache Software Foundation. All Rights Reserved.