Update version

This commit is contained in:
Victor Shcherb 2016-04-03 11:34:26 +03:00
parent 862e183d79
commit 520e0d12e7

View file

@ -105,6 +105,7 @@ public abstract class Entity implements Serializable {
private final long id; private final long id;
private boolean dataLoaded; private boolean dataLoaded;
private int modify; private int modify;
private int version;
public static final int MODIFY_UNKNOWN = 0; public static final int MODIFY_UNKNOWN = 0;
public static final int MODIFY_DELETED = -1; public static final int MODIFY_DELETED = -1;
public static final int MODIFY_MODIFIED = 1; public static final int MODIFY_MODIFIED = 1;
@ -173,6 +174,14 @@ public abstract class Entity implements Serializable {
return tags.get(key); return tags.get(key);
} }
public int getVersion() {
return version;
}
public void setVersion(int version) {
this.version = version;
}
public Map<String, String> getTags() { public Map<String, String> getTags() {
if(tags == null){ if(tags == null){
return Collections.emptyMap(); return Collections.emptyMap();