mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-22 15:12:38 +00:00
125781 rmunteanu: Merged 5.1.N (5.1.2) to 5.2.N (5.2.1)
125603 rmunteanu: Merged 5.1.1 (5.1.1) to 5.1.N (5.1.2)
125484 slanglois: MNT-16155 Update source headers - remove old Copyrights from Java and JSP dource files
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@127808 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
61 lines
1.1 KiB
Java
61 lines
1.1 KiB
Java
package org.alfresco.repo.domain.propval;
|
|
|
|
/**
|
|
* Entity bean for <b>alf_prop_root</b> table.
|
|
*
|
|
* @author Derek Hulley
|
|
* @since 3.2
|
|
*/
|
|
public class PropertyRootEntity
|
|
{
|
|
private Long id;
|
|
private short version;
|
|
|
|
public PropertyRootEntity()
|
|
{
|
|
}
|
|
|
|
@Override
|
|
public String toString()
|
|
{
|
|
StringBuilder sb = new StringBuilder(512);
|
|
sb.append("PropertyRootEntity")
|
|
.append("[ ID=").append(id)
|
|
.append(", version=").append(version)
|
|
.append("]");
|
|
return sb.toString();
|
|
}
|
|
|
|
public void incrementVersion()
|
|
{
|
|
if (version >= Short.MAX_VALUE)
|
|
{
|
|
this.version = 0;
|
|
}
|
|
else
|
|
{
|
|
this.version++;
|
|
}
|
|
}
|
|
|
|
public Long getId()
|
|
{
|
|
return id;
|
|
}
|
|
|
|
public void setId(Long id)
|
|
{
|
|
this.id = id;
|
|
}
|
|
|
|
public short getVersion()
|
|
{
|
|
return version;
|
|
}
|
|
|
|
public void setVersion(short version)
|
|
{
|
|
this.version = version;
|
|
}
|
|
}
|