Skip to content
Snippets Groups Projects
Commit 39790f9c authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Add revision to Entity interface

parent 1c30ba89
No related merge requests found
......@@ -45,12 +45,12 @@ public class DbUser implements Entity {
}
@JsonView(View.Persistence.class)
public String getRev() {
public String getRevision() {
return rev;
}
@JsonView(View.Persistence.class)
public void setRev(String rev) {
public void setRevision(String rev) {
this.rev = rev;
}
......
......@@ -24,6 +24,9 @@ public interface Entity {
String getId();
void setId(String id);
String getRevision();
void setRevision(String id);
@JsonView(View.Persistence.class)
default Class<? extends Entity> getType() {
return getClass();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment