mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Got rid of parent member of AVMNodes. Duplicated data unnecessarily.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3136 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -226,15 +226,6 @@ class OrphanReaper implements Runnable
|
||||
Query delete = session.getNamedQuery("ChildEntry.DeleteByParent");
|
||||
delete.setEntity("parent", node);
|
||||
delete.executeUpdate();
|
||||
// Now find all the nodes that point to this node as their
|
||||
// canonical parent and null that reference out.
|
||||
query = session.getNamedQuery("AVMNode.GetByParent");
|
||||
query.setEntity("parent", node);
|
||||
List<AVMNode> children = (List<AVMNode>)query.list();
|
||||
for (AVMNode child : children)
|
||||
{
|
||||
child.setParent(null);
|
||||
}
|
||||
if (node instanceof LayeredDirectoryNode)
|
||||
{
|
||||
// More special work for layered directories.
|
||||
|
Reference in New Issue
Block a user