escapeLikeExpression
public String escapeLikeExpression(String likeExpression)
Escaping like expressions so wildcards will not be evaluated.
The HQL query should have the ESCAPE_EXPRESSION in it's suffix for this to work!!!
The method returns an escaped expression, which would behave the same of all SQL repositories when
adding escape with the ESCAPE_CHAR to the query.
Note: 'like' expression are evaluated differently in MS-SQL.
'[]' behaves similar to regex expression and we do handle it specifically in MS-SQL.
- Parameters:
likeExpression - The like expression to be escaped.
- Returns:
- The escaped expression.