• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to write a Crieteria for

 
Naveen Mouli
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic