Skip to content

Commit

Permalink
Allow Entity serialization by XStream after its version has been upgr…
Browse files Browse the repository at this point in the history
  • Loading branch information
gorbunkov committed Feb 20, 2024
1 parent 2bb87ab commit af7f864
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package com.haulmont.reports.converter;

import com.haulmont.cuba.core.entity.Entity;
import com.haulmont.cuba.core.global.View;
import com.haulmont.cuba.core.global.ViewProperty;
import com.haulmont.cuba.core.sys.CubaXStream;
Expand Down Expand Up @@ -101,6 +102,8 @@ public boolean canConvert(Class type) {
xStream.aliasField("definedBy", ReportTemplate.class, "customDefinedBy");
xStream.aliasField("uuid", ReportValueFormat.class, "id");

xStream.allowTypeHierarchy(Entity.class);

return xStream;
}

Expand Down

0 comments on commit af7f864

Please sign in to comment.