Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-1057

Fix type parameters of OrderBy query processor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.5.2
    • 1.5.3
    • Data-Module
    • 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.

      Attachments

        Activity

          People

            hwellmann Harald Wellmann
            hwellmann Harald Wellmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: