mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-26 05:14:57 +00:00
[HHH-10188] "stored" is a reserved keyword
(cherry picked from commit 1fa78f9658509bd8a59ac53b67d332cb4c176e23)
This commit is contained in:
parent
1741e0f06f
commit
cd036a6367
@ -19,7 +19,7 @@
|
|||||||
</many-to-one>
|
</many-to-one>
|
||||||
<property name="deleted"/>
|
<property name="deleted"/>
|
||||||
<property name="loaded"/>
|
<property name="loaded"/>
|
||||||
<property name="stored"/>
|
<property name="store"/>
|
||||||
<property name="created"/>
|
<property name="created"/>
|
||||||
<property name="childKey" type="long"/>
|
<property name="childKey" type="long"/>
|
||||||
<property name="stuff"/>
|
<property name="stuff"/>
|
||||||
|
@ -22,7 +22,7 @@ public class Qux implements Lifecycle {
|
|||||||
boolean created;
|
boolean created;
|
||||||
boolean deleted;
|
boolean deleted;
|
||||||
boolean loaded;
|
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 Long key;
|
||||||
private String stuff;
|
private String stuff;
|
||||||
private Set fums;
|
private Set fums;
|
||||||
@ -102,11 +102,11 @@ private void setLoaded(boolean loaded) {
|
|||||||
this.loaded = loaded;
|
this.loaded = loaded;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean getStored() {
|
public boolean getStore() {
|
||||||
return stored;
|
return store;
|
||||||
}
|
}
|
||||||
private void setStored(boolean stored) {
|
private void setStore(boolean store) {
|
||||||
this.stored = stored;
|
this.store = store;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Long getKey() {
|
public Long getKey() {
|
||||||
@ -144,7 +144,7 @@ public void setMoreFums(List moreFums) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Qux getChild() throws HibernateException, SQLException {
|
public Qux getChild() throws HibernateException, SQLException {
|
||||||
stored=true;
|
store =true;
|
||||||
this.childKey = child==null ? null : child.getKey();
|
this.childKey = child==null ? null : child.getKey();
|
||||||
if (childKey!=null && child==null) child = (Qux) session.load(Qux.class, childKey);
|
if (childKey!=null && child==null) child = (Qux) session.load(Qux.class, childKey);
|
||||||
return child;
|
return child;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user