[
https://issues.apache.org/jira/browse/OLINGO-497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14224570#comment-14224570
]
Kiran G commented on OLINGO-497:
--------------------------------
Hi [~mirbo],
Yes, that would fix the issue.
But, it really doesn't convey at the interface that it needs to be in specific
order. I would perfer it to return a List<String> instead, where the String is
a the part JPQL which will be used as is for building the final JPQL.
Regards,
Kiran
> JPQLSelectContextView should use LinkedHashMap for OrderBy
> ----------------------------------------------------------
>
> Key: OLINGO-497
> URL: https://issues.apache.org/jira/browse/OLINGO-497
> Project: Olingo
> Issue Type: Bug
> Components: odata2-jpa
> Affects Versions: V2 2.0.0
> Reporter: Kiran G
> Assignee: Michael Bolz
>
> JPQLSelectContextView has a method to getOrderByCollection.
> {code}
> public HashMap<String, String> getOrderByCollection();
> {code}
> This method really should return LinkedHashMap to preserve the order of the
> $orderby's specified in the url. With the HashMap the orderbys are now being
> applied in a random order in the query.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)