Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-1463

JPQL new operator arguments should be more flexible in matching constructor arguments

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0-beta
    • Component/s: None
    • Labels:
      None

      Description

      A JPQL query
      "select new Range(MIN(p.id), MAX(p.id)) from PObject p"

      where p.id is int and Range has constructor (long,long) should be supported.
      This is done by matching the constructors of Range type with the supplied arguments (int,int) in a more flexible manner.

        Attachments

          Activity

            People

            • Assignee:
              ppoddar@apache.org Pinaki Poddar
              Reporter:
              ppoddar@apache.org Pinaki Poddar
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: