I'm using this solution:

public void get() {
        List types = new ArrayList();
        types.add(PersonType.DIRECTOR);
        types.add(PersonType.STUDENT);
        Query query = entityManager.createQuery("FROM Person p WHERE p.type IN 
(:types)")
        .setParameter("types", types);  
        query.getResultList();
}

, where Person type is enum defined as :

public static enum PersonType {
        STUDENT,                
        DIRECTOR,
        ...
        }

What version of EJB do you have?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047801#4047801

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047801
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to