minor change in getParent()

This commit is contained in:
hns 2001-03-07 19:30:31 +00:00
parent 293c4e013a
commit 8e86be7c60

View file

@ -597,7 +597,8 @@ public class Node implements INode, Serializable {
// check what's specified in the type.properties for this node.
ParentInfo[] parentInfo = null;
if (dbmap != null && dbmap.isRelational () && lastParentSet < Math.max (dbmap.getLastTypeChange(), lastmodified))
if (dbmap != null && dbmap.isRelational () &&
(lastParentSet < dbmap.getLastTypeChange() || lastParentSet < lastmodified))
parentInfo = dbmap.getParentInfo ();
// check if current parent candidate matches presciption, if not, try to get it