let my array have 3 values โโof an integer object = 3,4,5 I will need to create sleep criteria that look below
criteria.add(Restrictions.and(Restrictions.not(Restrictions.eq( "stepId", new Integer(3))), Restrictions.and(Restrictions .not(Restrictions.eq("stepId", new Integer(4))), Restrictions .not(Restrictions.eq("stepId", new Integer(5))))));
the above criteria are created manually, I'm wondering if this can be automated using iteration
for(Iterator iterator = integerArray.iterator; iterator.hasNext()){
source share