You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Rick Curtis (JIRA)" <ji...@apache.org> on 2014/11/21 02:15:33 UTC

[jira] [Commented] (OPENJPA-2544) OpenJPA should allow null value as surrogate for an empty collection or array in queries

    [ https://issues.apache.org/jira/browse/OPENJPA-2544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14220353#comment-14220353 ] 

Rick Curtis commented on OPENJPA-2544:
--------------------------------------

The link you posted doesn't have a criteria query, it just uses JPQL.... and it seems to work against trunk?

> OpenJPA should allow null value as surrogate for an empty collection or array in queries
> ----------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-2544
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2544
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: criteria
>    Affects Versions: 2.3.0
>            Reporter: Thomas Darimont
>            Priority: Minor
>
> Hibernate and EclipseLink support null to be used as a surrogate for an empty collection in CriteriaQueries. 
> Would be great to have that in OpenJPA as well - sadly the JPA spec isn't that clear on this...
> I added a test case that reproduces the issue:
> https://gist.github.com/thomasdarimont/b8d4f01b0e66bcdb2560
> See: shouldSupportNullValueAsASubstituateForAnEmptyParameterList



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