0I have this method:
public List<Product> getProductsByListIds(List<Long> ids) {
String query = "from Product pr where pr.id in(:ids)";
List<Product> products= (List<Product>) getSession().createQuery(query)
.setParameterList("ids", ids).list();
return products;
}
This method is OK, my only problem is when the ids.size() >1000
I'm trying to find a convincing solution to this problem.