Добрый день!
У меня есть DTO, которая используется в TreeDataGrid в DetailView. Выглядит следующим образом:
@JmixEntity(annotatedPropertiesOnly = true)
public class UiConditionDto {
@JmixProperty
private String attributeName;
@JmixProperty
private PropertyCondition.Operator operator;
@JmixProperty
private ClassType dataType;
@JmixProperty
private LogicalCondition.Type type;
@JmixProperty
private Object comparableValue;
private List<Condition> childConditions;
@JmixProperty
private UiConditionDto parentUiCondition;
Также прикладываю код TreeDataGrid из дескриптора:
<treeDataGrid id="conditionsTable"
hierarchyProperty="parentUiCondition"
width="100%"
minHeight="20em"
dataContainer="conditionsDc">
<columns>
<column key="treeConditions"/>
<column property="operator"/>
<column property="comparableValue"/>
</columns>
</treeDataGrid>
При запуске приложения получаю ошибку:
Caused by: java.lang.IllegalStateException: Can't find range class 'java.lang.Object' for property 'UiConditionDto.comparableValue'
Заранее я не могу знать, какого типа будет comparableValue, поэтому он Object.
Как можно поправить данную ошибку?