You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrey Razumovsky (JIRA)" <ji...@apache.org> on 2009/11/10 13:20:27 UTC
[jira] Created: (CAY-1305) EJBQL doesn't support null parameters
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.
[jira] Closed: (CAY-1305) EJBQL doesn't support null parameters
Posted by "Andrey Razumovsky (JIRA)" <ji...@apache.org>.
[ 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.