Hibernate has example criteria: For example:
Example equal = Example.create(mydbObject);
Is there a way to do the opposite, For example:
Criteria cri = session.createCriteria(Your.class); cri.add(Restrictions.not(Restrictions.eq("parameter", "test")));
-- Restrictions.not will be negation of the expression