You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We must support the following for id queries (we do not support this in the CriteriaBuilder or SubqueryBuilder):
e.g. selectSubquery("a").fromblabla.end().page(0,1).orderBySubquery("MAX(a)", true, false)
For the id query we must extract the wrapping expression for the order by clause and apply it to the corresponding select alias (which must correspond to a subquery). E.g we then have
SELECT id, MAX(SELECT bla FROM bla) AS a ORDER BY a
The text was updated successfully, but these errors were encountered:
Also add the following to the PaginatedCriteriaBuilder interface
SubqueryInitiator orderBySubquery(String expression, String alias, boolean ascending, boolean nullsFirst)
with a behavior so that the following will be possible:
We must support the following for id queries (we do not support this in the CriteriaBuilder or SubqueryBuilder):
e.g. selectSubquery("a").fromblabla.end().page(0,1).orderBySubquery("MAX(a)", true, false)
For the id query we must extract the wrapping expression for the order by clause and apply it to the corresponding select alias (which must correspond to a subquery). E.g we then have
SELECT id, MAX(SELECT bla FROM bla) AS a ORDER BY a
The text was updated successfully, but these errors were encountered: