Declarative transactions (@Transactional) doesn't work with @Repository in Spring
问题 I'm trying to make simple application using Spring, JPA and embedded H2 database. Recently I've come across this strange issue with declarative transactions. They just doesn't commit if I autowire my DAO with @Repository annotation. More specifically I get exception on flush: javax.persistence.TransactionRequiredException: Exception Description: No transaction is currently active Here is my setup: persistence.xml <persistence-unit name="schedulePU" transaction-type="RESOURCE_LOCAL"> <provider