size « Criteria « JPA Q&A





1. Criteria with variable size.    forum.hibernate.org

Hi, probably there is a lot of posts with the same problem that i have, but i can't find any example. My problem is how to build a query with the Criteria, but the values after WHERE have a variable size. I want to know the following: SELECT * FROM TABLE1 WHERE ID = 1, ID = 2, ...., ID = ...