aspose file tools
The moose likes Object Relational Mapping and the fly likes How to write a Crieteria for Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "How to write a Crieteria for" Watch "How to write a Crieteria for" New topic
Author

How to write a Crieteria for

Naveen Mouli
Greenhorn

Joined: Jul 03, 2007
Posts: 2
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 ]
 
IntelliJ Java IDE
 
subject: How to write a Crieteria for
 
Threads others viewed
Struts2-spring-hibernet integration jars
EJB 2.0 Finder using distributed query
Flag Bytes
Hibernate query help
Passing request Parameter using Sockets
developer file tools