Persist/commit not working in test environment with Spring JPA JUnit
问题 I'm trying to setup a basic JPA insert test. But nothing is saved in the DB. DB is Postgresql. Hibernate is used as Persistence provider. Many thanks in advance. @Entity public class Currency { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) protected Integer id; @Column private String code; @Column private String name; ... } The CRUD class : @Repository @Scope(BeanDefinition.SCOPE_PROTOTYPE) @Transactional(propagation = Propagation.REQUIRED) public class CRUDServiceBean implements