From 3a03afc09d1787ba7f9b036efcb947faebd811d9 Mon Sep 17 00:00:00 2001 From: hns Date: Wed, 17 Sep 2003 13:04:30 +0000 Subject: [PATCH] Fix bug in needsPersistence() that didn't persist object references. --- src/helma/objectmodel/db/Relation.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/helma/objectmodel/db/Relation.java b/src/helma/objectmodel/db/Relation.java index f6e25cae..93218c39 100644 --- a/src/helma/objectmodel/db/Relation.java +++ b/src/helma/objectmodel/db/Relation.java @@ -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(); }