Transactions, Spring.
JpaTransactionManager transactionManager = new JpaTransactionManager(); transactionManager.setEntityManagerFactory(entityManagerFactory().getObject()); return transactionManager; } } However, if we use a Spring Boot project and have defined “spring-data-*” or “spring-tx” dependencies on the