For this question, we want to avoid having to write a special query since the query would have to be different across multiple databases. Using only hibernate criteria, we w
If you use sqlRectrictions, the correct way to do it is the following:
criterions.add(Restrictions.sqlRestriction(columnName+" LIKE '!%' ESCAPE '!'"));
Is like a sql query, doesn't work ilike => use LIKE using Oracle 12i.