Annotation Interface WithTransaction
@Inherited
@InterceptorBinding
@Target({TYPE,METHOD})
@Retention(RUNTIME)
public @interface WithTransaction
Instructs Panache to trigger the
Uni returned from the intercepted method within a scope of a
reactive Mutiny.Transaction.
If a reactive session exists when the Uni returned from the annotated method is triggered, then
this session is reused. Otherwise, a new
session is opened and eventually closed when the Uni completes.
A method annotated with this annotation must return Uni. If declared on a class then all methods
that return Uni are considered; all other methods are ignored.
- See Also: