You're right, it's also not allowed according to the specs: (11.2.7.4) Input parameters can only be used in comparison_expressions or collection_member_expressions, as defined in Section 11.4, �EJB QL BNF�.