File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
hibernate-core/src/test/java/org/hibernate/orm/test/engine/spi Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,8 @@ public class EntityWithBatchSize1 {
100
100
@ GeneratedValue (strategy = GenerationType .IDENTITY )
101
101
private Long id ;
102
102
103
+ private String name ;
104
+
103
105
@ OneToMany
104
106
@ BatchSize (size = 1 )
105
107
private Set <ChildEntity > childrenWithBatchSize1 ;
@@ -112,6 +114,14 @@ public void setId(Long id) {
112
114
this .id = id ;
113
115
}
114
116
117
+ public String getName () {
118
+ return name ;
119
+ }
120
+
121
+ public void setName (String name ) {
122
+ this .name = name ;
123
+ }
124
+
115
125
public Set <ChildEntity > getChildrenWithBatchSize1 () {
116
126
return childrenWithBatchSize1 ;
117
127
}
@@ -128,12 +138,22 @@ public class ChildEntity {
128
138
@ GeneratedValue (strategy = GenerationType .IDENTITY )
129
139
private Long id ;
130
140
141
+ private String name ;
142
+
131
143
public Long getId () {
132
144
return id ;
133
145
}
134
146
135
147
public void setId (Long id ) {
136
148
this .id = id ;
137
149
}
150
+
151
+ public String getName () {
152
+ return name ;
153
+ }
154
+
155
+ public void setName (String name ) {
156
+ this .name = name ;
157
+ }
138
158
}
139
159
}
You can’t perform that action at this time.
0 commit comments