Transactions, Spring.
@Transactional(propagation = Propagation.REQUIRES_NEW) // etc Required (default): My method needs a transaction, either open one for me or use an existing one → getConnection(). setAutocommit(false). commit(). Supports: I don’t really care if a transaction is open or not, i can work either way →