Transactions, Spring.
by another service OrganizationService, then that class will be annotated as follows: @Service @Transactional(propagation=Propagation.REQUIRED) public class OrganizationService { @Autowired EntityService entityService; public void organize() { // … entityService.registerEntity(entity); // … }}