mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-18 00:55:16 +00:00
Fix HANA error where table only contains PK
This commit is contained in:
parent
9071c16e7d
commit
829b990585
@ -100,6 +100,8 @@ public class EntityWithBatchSize1 {
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
|
||||
private String name;
|
||||
|
||||
@OneToMany
|
||||
@BatchSize(size = 1)
|
||||
private Set<ChildEntity> childrenWithBatchSize1;
|
||||
@ -112,6 +114,14 @@ public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Set<ChildEntity> getChildrenWithBatchSize1() {
|
||||
return childrenWithBatchSize1;
|
||||
}
|
||||
@ -128,6 +138,8 @@ public class ChildEntity {
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
|
||||
private String name;
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@ -135,5 +147,13 @@ public Long getId() {
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user