I\'m trying to implement a web service which accepts a list of strings, each of which is a regular expression. These need to be compared against six columns of a database,
Similar working example
Criterion criterion = Restrictions.sqlRestriction("regexp_like (column_name, ?, 'i')", "(^|\\s)"+searchValue+"($|\\s|.$)", StringType.INSTANCE);