@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 java.lang.annotation.Annotation>[] |
qualifier
Optional qualifier/s which allow/s to start only specific transactions instead of one
for the injected
EntityManagers. |
boolean |
readOnly
Only evaluated on the first/outermost transactional bean/method in the chain
|
public abstract Class<? extends java.lang.annotation.Annotation>[] qualifier
EntityManagers.
Default-value is Any which means any injected EntityManagers
should be detected automatically and transactions for all injected EntityManagers
will be started. Or the Default EntityManager
will be used, if no qualifier and no 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
EntityManagers with qualifiers in a called method (of a different bean)
which isn't Transactional itself.Copyright © 2015 The Apache Software Foundation. All rights reserved.