Configure the transaction attributes of the Spring transaction proxy.
<Prop key = "get *"> propagation_required, readonly </prop>
Indicates that the class method name starts with get and requires a transaction. * Is a wildcard.
The following is similar.
Propagation_required -- supports the current transaction. If no transaction exists, a new transaction is created. This is the most common choice.
Propagation_supports -- supports the current transaction. If no transaction exists, it is executed in non-transaction mode.
Propagation_mandatory -- supports the current transaction. If no transaction exists, an exception is thrown.
Propagation_requires_new -- creates a transaction. If a transaction exists, it is suspended.
Propagation_not_supported -- executes operations in non-transaction mode. If a transaction exists, the current transaction is suspended.
Propagation_never -- runs in non-transaction mode. If a transaction exists, an exception is thrown.
Propagation_nested -- if a transaction exists, it is executed within the nested transaction. If no transaction exists, perform a similar operation as propagation_required.