From bfa99996c858bbdcca8f4819d2eea12945dc6fb7 Mon Sep 17 00:00:00 2001 From: hns Date: Thu, 18 Jul 2002 20:19:52 +0000 Subject: [PATCH] Only return property-to-db mapping as properties enumeration if the node is stored in a relational database. Otherwise, the actual properties are returned. --- 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 989f7d7f..811999cc 100644 --- a/src/helma/objectmodel/db/Node.java +++ b/src/helma/objectmodel/db/Node.java @@ -1245,7 +1245,7 @@ public final class Node implements INode, Serializable { */ public Enumeration properties () { - if (dbmap != null && dbmap.getProp2DB ().size() > 0) + if (dbmap != null && dbmap.isRelational() && dbmap.getProp2DB ().size() > 0) // return the properties defined in type.properties, if there are any return new Enumeration () { Iterator i = dbmap.getProp2DB().keySet().iterator();