File tree 2 files changed +3
-6
lines changed
spring-data-jpa/src/test/java/org/springframework/data/jpa
2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 92
92
@ Table (name = "SD_User" )
93
93
public class User {
94
94
95
- @ Id
96
- @ GeneratedValue (strategy = GenerationType .AUTO ) private Integer id ;
95
+ @ Id @ GeneratedValue (strategy = GenerationType .AUTO ) private Integer id ;
97
96
private String firstname ;
98
97
private String lastname ;
99
98
private int age ;
@@ -106,7 +105,7 @@ public class User {
106
105
107
106
@ ManyToMany private Set <Role > roles ;
108
107
109
- @ ManyToOne private User manager ;
108
+ @ ManyToOne ( fetch = FetchType . LAZY ) private User manager ;
110
109
111
110
@ Embedded private Address address ;
112
111
@@ -372,7 +371,7 @@ public boolean equals(Object obj) {
372
371
373
372
User that = (User ) obj ;
374
373
375
- if (null == this .getId () || null == that .getId ()) {
374
+ if (( null == this .getId ()) || ( null == that .getId () )) {
376
375
return false ;
377
376
}
378
377
Original file line number Diff line number Diff line change 31
31
import org .assertj .core .api .SoftAssertions ;
32
32
import org .junit .Assume ;
33
33
import org .junit .jupiter .api .BeforeEach ;
34
- import org .junit .jupiter .api .Disabled ;
35
34
import org .junit .jupiter .api .Test ;
36
35
import org .junit .jupiter .api .extension .ExtendWith ;
37
36
import org .springframework .beans .factory .annotation .Autowired ;
@@ -94,7 +93,6 @@ void setup() {
94
93
}
95
94
96
95
@ Test // DATAJPA-612
97
- @ Disabled // HHH-15391
98
96
void shouldRespectConfiguredJpaEntityGraph () {
99
97
100
98
Assume .assumeTrue (currentEntityManagerIsAJpa21EntityManager (em ));
You can’t perform that action at this time.
0 commit comments