cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Lindesay (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CAY-2017) Malformed EJBQL from "isNull"
Date Tue, 23 Jun 2015 09:48:00 GMT

     [ https://issues.apache.org/jira/browse/CAY-2017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrew Lindesay closed CAY-2017.
--------------------------------
    Resolution: Fixed

> 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)

Mime
View raw message