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
This commit is contained in:
Jan Vonka
2009-09-08 12:04:33 +00:00
parent c2cca0311b
commit efda84932f

View File

@@ -208,9 +208,9 @@ public class AVMNodeEntity
return isRoot; return isRoot;
} }
public void setRoot(boolean isRoot) public void setRoot(Boolean isRoot)
{ {
this.isRoot = isRoot; this.isRoot = (isRoot == null ? false : isRoot);
} }
public Integer getDeletedType() public Integer getDeletedType()
@@ -248,9 +248,9 @@ public class AVMNodeEntity
return primaryIndirection; return primaryIndirection;
} }
public void setPrimaryIndirection(boolean primaryIndirection) public void setPrimaryIndirection(Boolean primaryIndirection)
{ {
this.primaryIndirection = primaryIndirection; this.primaryIndirection = (primaryIndirection == null ? false : primaryIndirection);
} }
public boolean getOpacity() public boolean getOpacity()
@@ -258,9 +258,9 @@ public class AVMNodeEntity
return opacity; return opacity;
} }
public void setOpacity(boolean opacity) public void setOpacity(Boolean opacity)
{ {
this.opacity = opacity; this.opacity = (opacity == null ? false : opacity);
} }
public String getContentUrl() public String getContentUrl()