I\'ve seen Restrictions.ilike(\'property\', \'%value%\'), but would like to generate SQL like: lower(property) = \'value\'. Any ideas?
I used:
Restri
crit(Restrictions.eq("firstName", firstName).ignoreCase()); works.
crit(Restrictions.eq("firstName", firstName).ignoreCase());
This did returns a SimpleExpression Object but It generates lower(firstname) query. So this works.
SimpleExpression Object
lower(firstname)