mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Another checkpoint. Added version checking to ChildEntry.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3236 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -42,6 +42,11 @@ public class ChildEntryImpl implements ChildEntry, Serializable
|
||||
*/
|
||||
private AVMNode fChild;
|
||||
|
||||
/**
|
||||
* The Optimistic lock version
|
||||
*/
|
||||
private long fVers;
|
||||
|
||||
/**
|
||||
* Default constructor for Hibernate.
|
||||
*/
|
||||
@@ -145,4 +150,20 @@ public class ChildEntryImpl implements ChildEntry, Serializable
|
||||
{
|
||||
return fName.hashCode() + fParent.hashCode();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the vers
|
||||
*/
|
||||
protected long getVers()
|
||||
{
|
||||
return fVers;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param vers the vers to set
|
||||
*/
|
||||
protected void setVers(long vers)
|
||||
{
|
||||
fVers = vers;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user