• 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 ]
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!