Andrew Lindesay created CAY-2017:
------------------------------------

             Summary: Malformed EJBQL from "isNull"
                 Key: CAY-2017
                 URL: https://issues.apache.org/jira/browse/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)

{quote}
Assuming “Device” is a DataObject class containing a property named “username”, 
this code:

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?
{quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to