spring-data-jpa

Spring data and junit

不羁的心 提交于 2020-01-17 09:56:10
问题 i have a problem where i want to test spring data with junit. I use spring data jpa with junit 4 : this is my test class @ContextConfiguration(locations={"classpath*:applicationContext.xml"}) @Transactional @RunWith(SpringJUnit4ClassRunner.class) public class EquipementServiceTest1 { @Autowired

Spring data and junit

这一生的挚爱 提交于 2020-01-17 09:49:06
问题 i have a problem where i want to test spring data with junit. I use spring data jpa with junit 4 : this is my test class @ContextConfiguration(locations={"classpath*:applicationContext.xml"}) @Transactional @RunWith(SpringJUnit4ClassRunner.class) public class EquipementServiceTest1 { @Autowired

EclipseLink - Error: Attempted to redeploy a session without closing it

拜拜、爱过 提交于 2020-01-17 04:13:35
问题 I have a application running in AWS BeanStalk (Tomcat8 + SpringMVC + PostgreSQL + EclipseLink). The application is running ok but after some time running (2 hours) one error starting to happen: The intercepted error is: org.springframework.transaction.CannotCreateTransactionException: Could not

Spring Data JPA Transaction - No Transaction in progress - Spring Data Neo4j

♀尐吖头ヾ 提交于 2020-01-17 01:58:10
问题 I think i'm missing something obvious. Iam trying to make a entity persist into a database via a JUnit Test case, however it doesnt seem to be persisting due to no active transaction. Configuration: @Configuration @EnableTransactionManagement public class TransactionConfig { @Inject private