Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-1578

Properly bind null values to ….isNull() expressions in Querydsl

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: General backlog
    • Fix Version/s: 2.2 RC3 (Moore)
    • Component/s: None
    • Labels:
      None

      Description

      Given following 2 entities, 

      A: { name: string, b: B(mappedBy) }

      B: { name: string, a: A }

      in database, table A has few records, table B has nothing.

      When I try to query A with filter B ( /A?b.name=xxx )

      I expect it returns a empty list of A

      but it actually returns 500 error suggesting using isNull() instead of eq(null)

        Attachments

          Activity

            People

            Assignee:
            olivergierke Oliver Drotbohm
            Reporter:
            coling Colin Gao
            Last updater:
            Mark Paluch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: