HHH-13053 - Fix test on Oracle and HANA databases.

This commit is contained in:
Chris Cranford 2018-11-14 12:46:33 -05:00
parent 805aec32b3
commit 013e5b70b8
1 changed files with 9 additions and 0 deletions

View File

@ -44,6 +44,7 @@ public class UpdateOrderingIdentityIdentifierTest extends BaseEntityManagerFunct
@Entity(name = "Zoo")
public static class Zoo {
private Long id;
private String data;
private List<Animal> animals = new ArrayList<>();
@Id
@ -56,6 +57,14 @@ public class UpdateOrderingIdentityIdentifierTest extends BaseEntityManagerFunct
this.id = id;
}
public String getData() {
return data;
}
public void setData(String data) {
this.data = data;
}
@OneToMany(fetch = FetchType.LAZY, mappedBy = "zoo", cascade = CascadeType.ALL)
public List<Animal> getAnimals() {
return animals;