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

View File

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