openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willis Blackburn (JIRA)" <j...@apache.org>
Subject [jira] Created: (OPENJPA-1806) "Error message: JPQL query does not support conditional expression over embeddable class."
Date Mon, 20 Sep 2010 11:41:32 GMT
"Error message: JPQL query does not support conditional expression over embeddable class."
------------------------------------------------------------------------------------------

                 Key: OPENJPA-1806
                 URL: https://issues.apache.org/jira/browse/OPENJPA-1806
             Project: OpenJPA
          Issue Type: Bug
          Components: jpa
    Affects Versions: 2.0.1
            Reporter: Willis Blackburn


I attempted to execute this JPQL query:

select o from Organization o where :hostName member of o.hostNames

where o.hostNames is a collection of HostName, which is an embeddable class.  In other words,
hostNames is an ElementCollection.  The parameter hostName is also an instance of HostName.
 I got the following error:

"Error message: JPQL query does not support conditional expression over embeddable class."

I am logging this as a bug because "member of" should work with element collections in this
manner.  Apparently it does with EclipseLink:

http://stackoverflow.com/questions/2687690/jpa-2-and-hibernate-3-5-1-member-of-query-doesnt-work

There is also a bug logged on the Hibernate JIRA for this issue, HHH-5209.


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