Thank you for posting reply.
Can you please explain more about using IN? should I create a JPQL dynamically and include all PK form the list into the dynamically created query or I can pass the list to JPQL directly?
Joined: Oct 01, 2007
As of JPA 2.0 you can use a list parameter with an IN. Some JPA providers supported this in JPA 1.0 as well.
"Select e from Employee e where e.id IN :ids"
Joined: Jul 14, 2005
My problem solved.
subject: How to retrieve all entities when I have a list of with all required objects PKs?