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

select distinct generates wrong JPQL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.2
    • 1.8.0
    • Data-Module
    • None

    Description

      The Data module generateds brackets into a distinct JPQL statement

      Instead of

      {source}
      SELECT DISTINCT e.mycol from SomeEntity e{source}

      we currently generate:

      {source}
      SELECT DISTINCT(e.mycol) from SomeEntity e{source}

      But this is not correct according to the JPA spec. It also actually only works on Hibernate but fails on both EclipseLink (RI) and OpenJPA.

      Attachments

        Activity

          People

            struberg Mark Struberg
            struberg Mark Struberg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: