You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Harald Wellmann (JIRA)" <ji...@apache.org> on 2015/12/31 11:55:49 UTC
[jira] [Assigned] (DELTASPIKE-1057) Fix type parameters of OrderBy
query processor
[ https://issues.apache.org/jira/browse/DELTASPIKE-1057?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Harald Wellmann reassigned DELTASPIKE-1057:
-------------------------------------------
Assignee: Harald Wellmann
> Fix type parameters of OrderBy query processor
> ----------------------------------------------
>
> Key: DELTASPIKE-1057
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-1057
> Project: DeltaSpike
> Issue Type: Bug
> Components: Data-Module
> Affects Versions: 1.5.2
> Reporter: Harald Wellmann
> Assignee: Harald Wellmann
> Priority: Minor
> Fix For: 1.5.3
>
>
> Class {{OrderBy}} represents a list of ORDER BY clauses and is defined as
> {code}
> public class OrderBy<P, V> implements QueryProcessor<P> {
> public void add(SingularAttribute<? super P, V> att, OrderDirection dir)
> }
> {code}
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)