glassfish
  1. glassfish
  2. GLASSFISH-533

JPQL queries can only select constructor expression as sole return value of a query

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 9.0pe
    • Fix Version/s: 9.0pe
    • Component/s: entity-persistence
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      533

      Description

      When using a JPQL query with a constructor expression, only a single value may
      be returned.

      For instance, the following JPQL will fail:

      select new example.Employee(o.id, o.quantity), o from Order o

        Activity

        Hide
        tware added a comment -

        will be resolved in next entity-persistence drop

        Show
        tware added a comment - will be resolved in next entity-persistence drop
        Hide
        tware added a comment -

        Fix Checked in

        Show
        tware added a comment - Fix Checked in

          People

          • Assignee:
            tware
            Reporter:
            tware
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: