Skip to content

Commit 829b990

Browse files
committed
Fix HANA error where table only contains PK
1 parent 9071c16 commit 829b990

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/engine/spi/LoadQueryInfluencersTest.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ public class EntityWithBatchSize1 {
100100
@GeneratedValue(strategy = GenerationType.IDENTITY)
101101
private Long id;
102102

103+
private String name;
104+
103105
@OneToMany
104106
@BatchSize(size = 1)
105107
private Set<ChildEntity> childrenWithBatchSize1;
@@ -112,6 +114,14 @@ public void setId(Long id) {
112114
this.id = id;
113115
}
114116

117+
public String getName() {
118+
return name;
119+
}
120+
121+
public void setName(String name) {
122+
this.name = name;
123+
}
124+
115125
public Set<ChildEntity> getChildrenWithBatchSize1() {
116126
return childrenWithBatchSize1;
117127
}
@@ -128,12 +138,22 @@ public class ChildEntity {
128138
@GeneratedValue(strategy = GenerationType.IDENTITY)
129139
private Long id;
130140

141+
private String name;
142+
131143
public Long getId() {
132144
return id;
133145
}
134146

135147
public void setId(Long id) {
136148
this.id = id;
137149
}
150+
151+
public String getName() {
152+
return name;
153+
}
154+
155+
public void setName(String name) {
156+
this.name = name;
157+
}
138158
}
139159
}

0 commit comments

Comments
 (0)