File tree Expand file tree Collapse file tree 4 files changed +5
-6
lines changed
main/java/com/baeldung/model
test/java/com/baeldung/tx Expand file tree Collapse file tree 4 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 10
10
- [ Batch Insert/Update with Hibernate/JPA] ( https://www.baeldung.com/jpa-hibernate-batch-insert-update )
11
11
- [ Difference Between save() and saveAndFlush() in Spring Data JPA] ( https://www.baeldung.com/spring-data-jpa-save-saveandflush )
12
12
13
- - [ Programmatic Transaction Management in Spring] ( https://www.baeldung.com/spring-programmatic-transaction-management )
14
-
15
13
### Eclipse Config
16
14
After importing the project into Eclipse, you may see the following error:
17
15
"No persistence xml file found in project"
Original file line number Diff line number Diff line change 2
2
- [ Derived Query Methods in Spring Data JPA Repositories] ( https://www.baeldung.com/spring-data-derived-queries )
3
3
- [ LIKE Queries in Spring JPA Repositories] ( https://www.baeldung.com/spring-jpa-like-queries )
4
4
- [ A Guide to Spring’s Open Session In View] ( https://www.baeldung.com/spring-open-session-in-view )
5
+ - [ Programmatic Transaction Management in Spring] ( https://www.baeldung.com/spring-programmatic-transaction-management )
5
6
6
7
### Eclipse Config
7
8
After importing the project into Eclipse, you may see the following error:
File renamed without changes.
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ void givenAPayment_WhenMarkAsRollback_ThenShouldRollback() {
77
77
});
78
78
79
79
assertThat (entityManager
80
- .createQuery ("select p from Payment p" )
80
+ .createQuery ("select p from Payment p" , Payment . class )
81
81
.getResultList ()).isEmpty ();
82
82
}
83
83
@@ -104,7 +104,7 @@ void givenTwoPayments_WhenRefIsDuplicate_ThenShouldRollback() {
104
104
}
105
105
106
106
assertThat (entityManager
107
- .createQuery ("select p from Payment p" )
107
+ .createQuery ("select p from Payment p" , Payment . class )
108
108
.getResultList ()).isEmpty ();
109
109
}
110
110
@@ -122,7 +122,7 @@ protected void doInTransactionWithoutResult(TransactionStatus status) {
122
122
});
123
123
124
124
assertThat (entityManager
125
- .createQuery ("select p from Payment p" )
125
+ .createQuery ("select p from Payment p" , Payment . class )
126
126
.getResultList ()).hasSize (1 );
127
127
}
128
128
@@ -145,7 +145,7 @@ void givenAPayment_WhenUsingTxManager_ThenShouldCommit() {
145
145
}
146
146
147
147
assertThat (entityManager
148
- .createQuery ("select p from Payment p" )
148
+ .createQuery ("select p from Payment p" , Payment . class )
149
149
.getResultList ()).hasSize (1 );
150
150
}
151
151
You can’t perform that action at this time.
0 commit comments