org.apache.onami.persist.Transactional |
Marks a method or class to be executed within a transaction.
This will span a new transaction around the method unless there is already a running transaction. In the case that there is a running transaction no new transaction is started. If a rollback happens for a method which did not start the transaction the already existing transaction will be marked as rollbackOnly. Guice uses AOP to enhance a method annotated with@Transactional
with a wrapper.
This means the @Transactional
only works as expected when:
getInstance(Class)
or getInstance(Key)
.
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |