mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Hibernate parts of AVM now based on Spring PlatformTransactionManager
abstraction. Configurations to match. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3286 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -261,9 +261,11 @@ public class OrphanReaper implements Runnable
|
||||
delete.setEntity("parent", node);
|
||||
delete.executeUpdate();
|
||||
}
|
||||
session.delete(node);
|
||||
}
|
||||
else if (node instanceof PlainFileNode)
|
||||
{
|
||||
session.delete(node);
|
||||
// FileContent should be purged if nobody else references it.
|
||||
FileContent content = ((PlainFileNode)node).getContent();
|
||||
if (content.getRefCount() == 1)
|
||||
@@ -272,7 +274,10 @@ public class OrphanReaper implements Runnable
|
||||
session.delete(content);
|
||||
}
|
||||
}
|
||||
session.delete(node);
|
||||
else
|
||||
{
|
||||
session.delete(node);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user