moved programmatic transaction examples from spring-data-jpa-3 to spring-data-jpa-4

This commit is contained in:
fejera 2019-11-29 14:07:01 +01:00
parent 41b17f7d61
commit f735eb6514
4 changed files with 5 additions and 6 deletions

View File

@ -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"

View File

@ -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 Springs 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:

View File

@ -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);
}