@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
Deprecated.
|
boolean |
readOnly
Only evaluated on the first/outermost transactional bean/method in the chain
|
@Deprecated public abstract Class<? extends 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.
This method is now deprecated, and if you have multiple EntityManagers you should use
EntityManagerResolver.
If you want to use qualifiers only, use EntityManagerConfig.Copyright © 2020 The Apache Software Foundation. All rights reserved.