File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
hibernate-core/src/test/java/org/hibernate/test/legacy Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 19
19
</many-to-one >
20
20
<property name =" deleted" />
21
21
<property name =" loaded" />
22
- <property name =" stored " />
22
+ <property name =" store " />
23
23
<property name =" created" />
24
24
<property name =" childKey" type =" long" />
25
25
<property name =" stuff" />
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public class Qux implements Lifecycle {
22
22
boolean created ;
23
23
boolean deleted ;
24
24
boolean loaded ;
25
- boolean stored ;
25
+ boolean store ; // this should more logically be named "stored" but that's a reserved keyword on MySQL 5.7
26
26
private Long key ;
27
27
private String stuff ;
28
28
private Set fums ;
@@ -102,11 +102,11 @@ private void setLoaded(boolean loaded) {
102
102
this .loaded = loaded ;
103
103
}
104
104
105
- public boolean getStored () {
106
- return stored ;
105
+ public boolean getStore () {
106
+ return store ;
107
107
}
108
- private void setStored (boolean stored ) {
109
- this .stored = stored ;
108
+ private void setStore (boolean store ) {
109
+ this .store = store ;
110
110
}
111
111
112
112
public Long getKey () {
@@ -144,7 +144,7 @@ public void setMoreFums(List moreFums) {
144
144
}
145
145
146
146
public Qux getChild () throws HibernateException , SQLException {
147
- stored =true ;
147
+ store =true ;
148
148
this .childKey = child ==null ? null : child .getKey ();
149
149
if (childKey !=null && child ==null ) child = (Qux ) session .load (Qux .class , childKey );
150
150
return child ;
You can’t perform that action at this time.
0 commit comments