openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fernando Padilla <f...@alum.mit.edu>
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 com.protrade.fandom.data.entities.Fan 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", 
"COUNT", "CURRENT_DATE", "CURRENT_TIME", "CURRENT_TIMESTAMP", "DELETE", 
"DESC", "DISTINCT", "EMPTY", "ESCAPE", "EXISTS", "FETCH", "FROM", 
"GROUP", "HAVING", "IN", "INNER", "IS", "JOIN", "LEADING", "LEFT", 
"LENGTH", "LIKE", "LOCATE", "LOWER", "MAX", "MEMBER", "MIN", "MOD", 
"NEW", "NOT", "NULL", "OBJECT", "OF", "OR", "ORDER", "OUTER", "SELECT", 
"SET", "SIZE", "SOME", "SQRT", "SUBSTRING", "SUM", "TRAILING", "TRIM", 
"UPDATE", "UPPER", "WHERE", <DECIMAL_LITERAL>, <IDENTIFIER>, 
<INTEGER_LITERAL>, <STRING_LITERAL>].

Mime
View raw message