CriteriaBuilder.In in = criteriaBuilder.in(root.get("field1"));
for (String str : arr) { in.value(str);}