JPA 2 and Hibernate 3.5.1 MEMBER OF query doesnt work.
- by Ed_Zero
I'm trying the following JPQL and it fails misserably:
Query query = em.createQuery("SELECT u FROM User u WHERE 'admin' MEMBER OF u.roles");
List users = query.query.getResultList();
I get the following exception:
ERROR [main] PARSER.error(454) | <AST>:0:0: unexpected end of subtree
java.lang.IllegalArgumentException:…