I tried this code
Query q = em.createQuery("SELECT c FROM Category c where c.id in 1" );
but I have this error
An exception occurred while creating a query in EntityManager:
Exception Description: Syntax error parsing [SELECT c FROM Category c where c.id in 1].
[31, 40] The expression is not a valid conditional expression.
what is the problem ?