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

Server returns the entity version for all select queries

parent e6212526
Branches
Tags
No related merge requests found
...@@ -87,7 +87,7 @@ public class EntityToElementStrategy implements ToElementStrategy { ...@@ -87,7 +87,7 @@ public class EntityToElementStrategy implements ToElementStrategy {
if (setFieldStrategy.isToBeSet("id") && entity.hasId()) { if (setFieldStrategy.isToBeSet("id") && entity.hasId()) {
element.setAttribute("id", Integer.toString(entity.getId())); element.setAttribute("id", Integer.toString(entity.getId()));
} }
if (setFieldStrategy.isToBeSet("version") && entity.hasVersion()) { if (entity.hasVersion()) {
Element v = new VersionXMLSerializer().toElement(entity.getVersion()); Element v = new VersionXMLSerializer().toElement(entity.getVersion());
element.addContent(v); element.addContent(v);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment