Fix bug in needsPersistence() that didn't persist object references.

This commit is contained in:
hns 2003-09-17 13:04:30 +00:00
parent a2dfb6a9b9
commit 3a03afc09d

View file

@ -423,9 +423,12 @@ public final class Relation {
*/ */
public boolean needsPersistence() { public boolean needsPersistence() {
if (!virtual) { 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) { if (prototype == null) {
return !otherType.isRelational(); return !otherType.isRelational();
} }