Update version
This commit is contained in:
parent
862e183d79
commit
520e0d12e7
1 changed files with 10 additions and 1 deletions
|
@ -105,6 +105,7 @@ public abstract class Entity implements Serializable {
|
|||
private final long id;
|
||||
private boolean dataLoaded;
|
||||
private int modify;
|
||||
private int version;
|
||||
public static final int MODIFY_UNKNOWN = 0;
|
||||
public static final int MODIFY_DELETED = -1;
|
||||
public static final int MODIFY_MODIFIED = 1;
|
||||
|
@ -173,6 +174,14 @@ public abstract class Entity implements Serializable {
|
|||
return tags.get(key);
|
||||
}
|
||||
|
||||
public int getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
public void setVersion(int version) {
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
public Map<String, String> getTags() {
|
||||
if(tags == null){
|
||||
return Collections.emptyMap();
|
||||
|
|
Loading…
Reference in a new issue