From 2015aeef89cda3ee37ed819d2fb1308ee9faab6c Mon Sep 17 00:00:00 2001 From: hns Date: Wed, 17 Sep 2003 13:52:33 +0000 Subject: [PATCH] Fix bug in previous commit: Make children persistable before setting collection/mountpoint to virtual, otherwise children will be lost. --- src/helma/objectmodel/db/Node.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helma/objectmodel/db/Node.java b/src/helma/objectmodel/db/Node.java index 3108453d..a0fe2ea2 100644 --- a/src/helma/objectmodel/db/Node.java +++ b/src/helma/objectmodel/db/Node.java @@ -2400,6 +2400,7 @@ public final class Node implements INode, Serializable { if (dbmap != null) { Relation rel = dbmap.getExactPropertyRelation(next.getName()); if (rel != null && rel.isVirtual() && !rel.needsPersistence()) { + n.makeChildrenPersistable(); // make this a virtual node. what we do is basically to // replay the things done in the constructor for virtual nodes. // NOTE: setting the primaryKey may not be necessary since this @@ -2408,7 +2409,6 @@ public final class Node implements INode, Serializable { n.setState(VIRTUAL); n.primaryKey = new SyntheticKey(getKey(), propname); n.id = propname; - n.makeChildrenPersistable(); continue; } }