I am trying to find rows that has one of the values I am looking for in one of the 2 columns. So far I've used a criteria like this but it doesn't find anything.
Criterion a = Restrictions.in("oid", workOrderOids);
Criterion b = Restrictions.in("parentReworkOid", workOrderOids);
Criterion c = Restrictions.or(a, b);
What might i be doing wrong?