[HHH-10188] "stored" is a reserved keyword

(cherry picked from commit 1fa78f9658)
This commit is contained in:
Jan Martiska 2015-10-14 13:25:52 +02:00 committed by Steve Ebersole
parent 1741e0f06f
commit cd036a6367
2 changed files with 7 additions and 7 deletions

View File

@ -19,7 +19,7 @@
</many-to-one>
<property name="deleted"/>
<property name="loaded"/>
<property name="stored"/>
<property name="store"/>
<property name="created"/>
<property name="childKey" type="long"/>
<property name="stuff"/>

View File

@ -22,7 +22,7 @@ public class Qux implements Lifecycle {
boolean created;
boolean deleted;
boolean loaded;
boolean stored;
boolean store; // this should more logically be named "stored" but that's a reserved keyword on MySQL 5.7
private Long key;
private String stuff;
private Set fums;
@ -102,11 +102,11 @@ public class Qux implements Lifecycle {
this.loaded = loaded;
}
public boolean getStored() {
return stored;
public boolean getStore() {
return store;
}
private void setStored(boolean stored) {
this.stored = stored;
private void setStore(boolean store) {
this.store = store;
}
public Long getKey() {
@ -144,7 +144,7 @@ public class Qux implements Lifecycle {
}
public Qux getChild() throws HibernateException, SQLException {
stored=true;
store =true;
this.childKey = child==null ? null : child.getKey();
if (childKey!=null && child==null) child = (Qux) session.load(Qux.class, childKey);
return child;