cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Lindesay (JIRA)" <>
Subject [jira] [Created] (CAY-2017) Malformed EJBQL from "isNull"
Date Tue, 23 Jun 2015 08:32:01 GMT
Andrew Lindesay created CAY-2017:

             Summary: Malformed EJBQL from "isNull"
                 Key: CAY-2017
             Project: Cayenne
          Issue Type: Bug
          Components: Core Library
    Affects Versions: 4.0.M2
            Reporter: Andrew Lindesay
             Fix For: 4.0.M3

(c.f. Hugi Thordarson in mailing list 2015-06-23)

Assuming “Device” is a DataObject class containing a property named “username”, this

Device.USERNAME.isNull().toEJBQL( "alias” );

results in: "alias.username is null"

However, if I “not” the expression by doing:

Device.USERNAME.isNotNull().toEJBQL( "alias” );

the result is: "not (username = null)"

I.e., it’s missing the alias and thus the query fails. Isn’t this a bug?

This message was sent by Atlassian JIRA

View raw message