Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Object Relational Mapping
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Object Relational Mapping
Array of ids in one select using Hibernate.
pawan chopra
Ranch Hand
Posts: 419
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi All,
I have array of ids which I want to use in where condition. Is there any way in hibernate I can pass this array so that it will fetch all the values in one select?
Pawan Chopra
SCJP -
itspawan.com
Sridhar Santhanakrishnan
Ranch Hand
Posts: 317
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Try using
where id in (:Ids) //Ids is the array of values.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
How to create a method to accomodate array in method parameter?
hibernate how to make a count and group by
creating my own select list
System.arraycopy VS toArray()
Need Script
More...