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:
Britt Park
2006-06-24 13:38:58 +00:00
parent 62b7425361
commit 619f31b1bd
5 changed files with 38 additions and 15 deletions

View File

@@ -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;
}
}