You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrew Lindesay (JIRA)" <ji...@apache.org> on 2015/06/23 11:48:00 UTC
[jira] [Closed] (CAY-2017) Malformed EJBQL from "isNull"
[ 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)