I use JPA on my JEE6 application running on Glassfish.
I want to select multiple records from a table. Let's say each record has a column named "serialnumber" And I have a dynamic list of serial numbers and from table I want to select the records with those serial numbers.
Is there a way to this without using a for loop?