Try this one:
em.createQuery("from ObjectA o where o in(select b.ObjectA from ObjectB b where b
in(:param))").setParameter("param", param).getResultList();
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231207#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...