Skip to content
Snippets Groups Projects
Verified Commit b3f9ebed authored by Timm Fitschen's avatar Timm Fitschen
Browse files

FIX: ignore versioning for properties and parents

parent 78c507b9
No related branches found
No related tags found
No related merge requests found
...@@ -57,4 +57,10 @@ public class Parent extends EntityWrapper { ...@@ -57,4 +57,10 @@ public class Parent extends EntityWrapper {
public Affiliation getAffiliation() { public Affiliation getAffiliation() {
return this.affiliation; return this.affiliation;
} }
@Override
public boolean hasVersion() {
// parents are not versioned (yet).
return false;
}
} }
...@@ -134,4 +134,10 @@ public class Property extends EntityWrapper { ...@@ -134,4 +134,10 @@ public class Property extends EntityWrapper {
public EntityInterface getDomainEntity() { public EntityInterface getDomainEntity() {
return this.domain; return this.domain;
} }
@Override
public boolean hasVersion() {
// properties are not versioned (yet).
return false;
}
} }
...@@ -115,7 +115,7 @@ public class SetFieldStrategy { ...@@ -115,7 +115,7 @@ public class SetFieldStrategy {
// Always-true-strategy // Always-true-strategy
@Override @Override
public boolean isToBeSet(String field) { public boolean isToBeSet(String field) {
return true; return field == null || !field.equalsIgnoreCase("version");
} }
}; };
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment