OSSEZ-47 DataObject Status and uuid reset

This commit is contained in:
YuCheng Hu 2020-04-23 09:30:07 -04:00
parent 1bf00d6343
commit f7ef85b3f4
1 changed files with 10 additions and 8 deletions

View File

@ -29,7 +29,7 @@ public abstract class DataObject {
public static final String MODIFY_DATE_PROPERTY_NAME = "modifyDate";
@Id
@GeneratedValue
@GeneratedValue(strategy = GenerationType.IDENTITY)
private long id = 0;
private String uuid;
private Date dateC;
@ -37,7 +37,6 @@ public abstract class DataObject {
@JsonProperty
@DocumentId
public long getId() {
return id;
}
@ -46,6 +45,15 @@ public abstract class DataObject {
this.id = id;
}
public String getUuid() {
return uuid;
}
public void setUuid(String uuid) {
this.uuid = uuid;
}
/**
* @return
*/
@ -63,9 +71,6 @@ public abstract class DataObject {
this.dateC = createDate;
}
public String getUuid() {
return uuid;
}
/**
* @return
@ -95,9 +100,6 @@ public abstract class DataObject {
this.dateM = dateM;
}
public void setUuid(String uuid) {
this.uuid = uuid;
}
@Override
public boolean equals(Object o) {