mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-09 12:44:49 +00:00
HHH-15258 Fix test failure for HANA db
This commit is contained in:
parent
26dbafb2b3
commit
e0f1a2ee13
@ -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;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user