Fix bug in needsPersistence() that didn't persist object references.
This commit is contained in:
parent
a2dfb6a9b9
commit
3a03afc09d
1 changed files with 4 additions and 1 deletions
|
@ -423,9 +423,12 @@ public final class Relation {
|
|||
*/
|
||||
public boolean needsPersistence() {
|
||||
if (!virtual) {
|
||||
return false;
|
||||
// ordinary object references always need to be persisted
|
||||
return true;
|
||||
}
|
||||
|
||||
// collections/mountpoints need to be persisted if the
|
||||
// child object type is non-relational.
|
||||
if (prototype == null) {
|
||||
return !otherType.isRelational();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue