posted 16 years ago
How to write an alternative for the below code by creating a Criteria Object
" 'ids' is an ArrayList of objects
Query query = session.createQuery("select ac.adultChildId from AdultChild as ac where ac.AdultId in (:ids)").setParameterList("ids",ids);
ids = query.list(); "
Thanks
Naveen
[ July 04, 2007: Message edited by: Naveen Mouli ]