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

OpenJPA should allow null value as surrogate for an empty collection or array in queries

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.3.0
    • None
    • criteria
    • None

    Description

      Hibernate and EclipseLink support null to be used as a surrogate for an empty collection in CriteriaQueries.
      Would be great to have that in OpenJPA as well - sadly the JPA spec isn't that clear on this...

      I added a test case that reproduces the issue:
      https://gist.github.com/thomasdarimont/b8d4f01b0e66bcdb2560
      See: shouldSupportNullValueAsASubstituateForAnEmptyParameterList

      Attachments

        Activity

          People

            Unassigned Unassigned
            thomasd Thomas Darimont
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: