List of usage examples for org.hibernate.criterion MatchMode toMatchString
public abstract String toMatchString(String pattern);
From source file:grails.orm.RlikeExpression.java
License:Apache License
public RlikeExpression(String propertyName, String value, MatchMode matchMode) { this(propertyName, matchMode.toMatchString(value)); }
From source file:org.eulerframework.web.core.extend.hibernate5.RestrictionsX.java
License:Apache License
public static LikeExpressionX like(String propertyName, String value, MatchMode matchMode) { return new LikeExpressionX(propertyName, matchMode.toMatchString(replaceSpecialChar(value)), ESCAPE_CHAR); }