Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.5.2
-
None
Description
Class OrderBy represents a list of ORDER BY clauses and is defined as
public class OrderBy<P, V> implements QueryProcessor<P> { public void add(SingularAttribute<? super P, V> att, OrderDirection dir) }
where P is an entity type and V is a value type.
This does not really make sense, since ORDER BY clauses do not have a common type in general (e.g. ORDER BY date DESC, name ASC).
The issue is glossed over in QueryCriteria by using OrderBy as a raw type.