- milestone: --> 1.0.0
EntityUtil.getReturnTypeForPropertyPathByAccessors() is failing to resolve property path for generic types.
When adding criterion for a property path that resolves to a generic type, the following exception is being thrown:
Example:
final ISearchCriterion<MyModel> criterion = new SearchCriterion<MyModel>(MyModel.class,
new PropertyPath("myInnerModelProperty.myInnerModelProperty2.myInnerModelProperty2Primitave").getQualifiedName(), LogicOperator.EQUALS, myInnerModelProperty2.getmyInnerModelProperty2Primitave());
dp.getCriteria().addCriterion(SearchCriteria.Conjunction.AND, criterion);
Exception:
java.lang.IllegalArgumentException: myInnerModelProperty.myInnerModelProperty2.myInnerModelProperty2Primitave not a valid property path for class: class org.mycompany.model.impl.MyModel at influx.dtc.collection.impl.SearchCriterion.validateCriterion(SearchCriterion.java:113) at influx.dtc.collection.impl.SearchCriterion.<init>(SearchCriterion.java:80) at
...