Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
(Java) V4 4.2.0
-
None
Description
According to Addressing Derived Types user should be able to filter on derived field
Example:
http://host/service/Customers?$filter=Model.VipCustomer/PercentageOfVipPromotionProductsOrdered gt 80
Information about type (e.g. Model.VipCustomer) is stored in field startTypeFilter(in MemberImpl), but it is not passed to ExpressionVisitor in accept method. ExpressionVisitor get only path. startTypeFilter is ignored, so it can't be used in visitMember method.
Suggested changes - patch in attachment.