cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Razumovsky (JIRA)" <j...@apache.org>
Subject [jira] Closed: (CAY-1305) EJBQL doesn't support null parameters
Date Wed, 11 Nov 2009 08:14:39 GMT

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

Andrey Razumovsky closed CAY-1305.
----------------------------------

    Resolution: Fixed

applied on 3.0 and trunk

> EJBQL doesn't support null parameters
> -------------------------------------
>
>                 Key: CAY-1305
>                 URL: https://issues.apache.org/jira/browse/CAY-1305
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Cayenne Core Library
>    Affects Versions: 3.0 beta 1
>            Reporter: Andrey Razumovsky
>            Assignee: Andrey Razumovsky
>             Fix For: 3.0 beta 2
>
>
> EJBQL parameter cannot be set as null. Test is simple as follows:
> EJBQLQuery query = new EJBQLQuery("select p from Painting p WHERE p.toArtist=:x");
> query.setParameter("x", null);
> createDataContext().performQuery(query);
> Caused by: java.lang.ClassCastException: org.apache.cayenne.reflect.generic.DataObjectToOneProperty
cannot be cast to org.apache.cayenne.reflect.AttributeProperty
>     at org.apache.cayenne.access.jdbc.EJBQLConditionTranslator.processParameter(EJBQLConditionTranslator.java:708)
>     at org.apache.cayenne.access.jdbc.EJBQLConditionTranslator.visitNamedInputParameter(EJBQLConditionTranslator.java:345)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message