@Target(value={METHOD,TYPE}) @Retention(value=RUNTIME) @Inherited public @interface Transactional
@Transactional with a wrapper.
This means the @Transactional only works as expected when:
Provider) injected into your class
or by calling Injector.getInstance(Class) or Injector.getInstance(Key).
| Modifier and Type | Optional Element and Description |
|---|---|
Class<? extends Exception>[] |
ignore
A list of exceptions to not rollback on.
|
Class<? extends Annotation>[] |
onUnits
A List of annotations for persistence units on which to start a transaction.
|
Class<? extends Exception>[] |
rollbackOn
A list of exceptions to rollback on.
|
public abstract Class<? extends Annotation>[] onUnits
public abstract Class<? extends Exception>[] rollbackOn
RuntimeException.Copyright © 2013–2014 The Apache Software Foundation. All rights reserved.