moved programmatic transaction examples from spring-data-jpa-3 to spring-data-jpa-4
This commit is contained in:
parent
41b17f7d61
commit
f735eb6514
|
@ -10,8 +10,6 @@
|
|||
- [Batch Insert/Update with Hibernate/JPA](https://www.baeldung.com/jpa-hibernate-batch-insert-update)
|
||||
- [Difference Between save() and saveAndFlush() in Spring Data JPA](https://www.baeldung.com/spring-data-jpa-save-saveandflush)
|
||||
|
||||
- [Programmatic Transaction Management in Spring](https://www.baeldung.com/spring-programmatic-transaction-management)
|
||||
|
||||
### Eclipse Config
|
||||
After importing the project into Eclipse, you may see the following error:
|
||||
"No persistence xml file found in project"
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
- [Derived Query Methods in Spring Data JPA Repositories](https://www.baeldung.com/spring-data-derived-queries)
|
||||
- [LIKE Queries in Spring JPA Repositories](https://www.baeldung.com/spring-jpa-like-queries)
|
||||
- [A Guide to Spring’s Open Session In View](https://www.baeldung.com/spring-open-session-in-view)
|
||||
- [Programmatic Transaction Management in Spring](https://www.baeldung.com/spring-programmatic-transaction-management)
|
||||
|
||||
### Eclipse Config
|
||||
After importing the project into Eclipse, you may see the following error:
|
||||
|
|
|
@ -77,7 +77,7 @@ class ManualTransactionIntegrationTest {
|
|||
});
|
||||
|
||||
assertThat(entityManager
|
||||
.createQuery("select p from Payment p")
|
||||
.createQuery("select p from Payment p", Payment.class)
|
||||
.getResultList()).isEmpty();
|
||||
}
|
||||
|
||||
|
@ -104,7 +104,7 @@ class ManualTransactionIntegrationTest {
|
|||
}
|
||||
|
||||
assertThat(entityManager
|
||||
.createQuery("select p from Payment p")
|
||||
.createQuery("select p from Payment p", Payment.class)
|
||||
.getResultList()).isEmpty();
|
||||
}
|
||||
|
||||
|
@ -122,7 +122,7 @@ class ManualTransactionIntegrationTest {
|
|||
});
|
||||
|
||||
assertThat(entityManager
|
||||
.createQuery("select p from Payment p")
|
||||
.createQuery("select p from Payment p", Payment.class)
|
||||
.getResultList()).hasSize(1);
|
||||
}
|
||||
|
||||
|
@ -145,7 +145,7 @@ class ManualTransactionIntegrationTest {
|
|||
}
|
||||
|
||||
assertThat(entityManager
|
||||
.createQuery("select p from Payment p")
|
||||
.createQuery("select p from Payment p", Payment.class)
|
||||
.getResultList()).hasSize(1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue