HHH-15258 Fix test failure for HANA db

This commit is contained in:
Andrea Boriero 2022-05-23 09:36:10 +02:00
parent 26dbafb2b3
commit e0f1a2ee13
2 changed files with 8 additions and 0 deletions

View File

@ -94,6 +94,8 @@ public class EagerOneToManyOrphanWithIdentityIdTest {
@GeneratedValue(strategy = GenerationType.IDENTITY)
Long id;
String name;
@OneToMany(mappedBy = "parent", orphanRemoval = true, fetch = FetchType.EAGER)
List<Child> children = new ArrayList<>();
@ -126,6 +128,8 @@ public class EagerOneToManyOrphanWithIdentityIdTest {
@GeneratedValue(strategy = GenerationType.IDENTITY)
Long id;
String name;
@ManyToOne
Parent parent;

View File

@ -93,6 +93,8 @@ public class LazyOneToManyOrphanWithIdentityIdTest {
@GeneratedValue(strategy = GenerationType.IDENTITY)
Long id;
String name;
@OneToMany(mappedBy = "parent", orphanRemoval = true)
List<Child> children = new ArrayList<>();
@ -125,6 +127,8 @@ public class LazyOneToManyOrphanWithIdentityIdTest {
@GeneratedValue(strategy = GenerationType.IDENTITY)
Long id;
String name;
@ManyToOne
Parent parent;