I need to be able to select with an IN query and a collection... something like this:
createQuery("from Campaign campaign where campaign.advertiser in (:advertisers) order by advertiserId").setParameterList("advertisers", selectedAdvertisers)
<factory name="session" scope="STATELESS" auto-create="true" value="#{entityManager.delegate}"/>
You're correct. I use the Hibernate session solely for this purpose too.
I haven't tried the components.xml definition of it. I just create it in my code
Session session = (Session)entityManager.getDelegate();Cheers,