Table 9.3. @Transactional properties

Property Type Description
propagation enum: Propagation optional propagation setting
isolation enum: Isolation optional isolation level
readOnly boolean read/write vs. read-only transaction
timeout int (in seconds granularity) the transaction timeout
rollbackFor an array of Class objects, which must be derived fromThrowable an optional array of exception classes which must cause rollback
rollbackForClassname an array of class names. Classes must be derived fromThrowable an optional array of names of exception classes that must cause rollback
noRollbackFor an array of Class objects, which must be derived fromThrowable an optional array of exception classes that must not cause rollback.
noRollbackForClassname an array of String class names, which must be derived from Throwable an optional array of names of exception classes that must notcause rollback
Advertisements