@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
EntityManager s. |
boolean |
readOnly
Only evaluated on the first/outermost transactional bean/method in the chain
|
public abstract Class<? extends Annotation>[] qualifier
EntityManager
s.
Default-value is Any
which means any injected EntityManager
s
should be detected automatically and transactions for all injected EntityManager
s
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
EntityManager
s with qualifiers in a called method (of a different bean)
which isn't Transactional
itself.Copyright © 2016 The Apache Software Foundation. All rights reserved.