openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fernando Padilla <>
Subject collection.contains, member of?
Date Thu, 16 Oct 2008 23:37:20 GMT
So in jdo I could do:

?.contains( fbId )

how would I do that in JPA?

I'm trying this out, but it's complaining:

select this from this where 
this.fbId MEMBER OF :p0;

<openjpa-1.2.0-r422266:683325 nonfatal user error> 
org.apache.openjpa.persistence.ArgumentException: Encountered "this . 
fbId MEMBER OF :" at character 69, but expected: ["(", "*", "+", "-", 
".", "/", ":", "<", "<=", "<>", "=", ">", ">=", "?", "ABS", "ALL", 
"AND", "ANY", "AS", "ASC", "AVG", "BETWEEN", "BOTH", "BY", "CONCAT", 
"NEW", "NOT", "NULL", "OBJECT", "OF", "OR", "ORDER", "OUTER", "SELECT", 

View raw message