Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-4396

DSL Query: right condition lost

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0.Alpha5
    • 7.0.0.Alpha4
    • Embedded Querying
    • None

      Condition created through query like this:

            Query q = qf.from(User.class)
                  .not(
                        qf.having("name").eq("John")
                        .or(qf.having("surname").eq("Man")))
                  .toBuilder().build();
      

      is not correctly parsed into JPQL query; it is

      FROM org.infinispan.query.dsl.embedded.sample_domain_model.User _gen0 WHERE NOT (_gen0.name = 'John')
      

            anistor Adrian Nistor (Inactive)
            rvansa1@redhat.com Radim Vansa (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: