From efda84932f6c72438e149eaae6fd8090f702fb24 Mon Sep 17 00:00:00 2001 From: Jan Vonka Date: Tue, 8 Sep 2009 12:04:33 +0000 Subject: [PATCH] AVM DAO refactor - handle null bool git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16143 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../org/alfresco/repo/domain/avm/AVMNodeEntity.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/java/org/alfresco/repo/domain/avm/AVMNodeEntity.java b/source/java/org/alfresco/repo/domain/avm/AVMNodeEntity.java index 54ee182074..b929908989 100644 --- a/source/java/org/alfresco/repo/domain/avm/AVMNodeEntity.java +++ b/source/java/org/alfresco/repo/domain/avm/AVMNodeEntity.java @@ -208,9 +208,9 @@ public class AVMNodeEntity return isRoot; } - public void setRoot(boolean isRoot) + public void setRoot(Boolean isRoot) { - this.isRoot = isRoot; + this.isRoot = (isRoot == null ? false : isRoot); } public Integer getDeletedType() @@ -248,9 +248,9 @@ public class AVMNodeEntity return primaryIndirection; } - public void setPrimaryIndirection(boolean primaryIndirection) + public void setPrimaryIndirection(Boolean primaryIndirection) { - this.primaryIndirection = primaryIndirection; + this.primaryIndirection = (primaryIndirection == null ? false : primaryIndirection); } public boolean getOpacity() @@ -258,9 +258,9 @@ public class AVMNodeEntity return opacity; } - public void setOpacity(boolean opacity) + public void setOpacity(Boolean opacity) { - this.opacity = opacity; + this.opacity = (opacity == null ? false : opacity); } public String getContentUrl()