diff --git a/core/src/main/java/org/hibernate/criterion/LikeExpression.java b/core/src/main/java/org/hibernate/criterion/LikeExpression.java index e78471a31f..1af7339b2e 100644 --- a/core/src/main/java/org/hibernate/criterion/LikeExpression.java +++ b/core/src/main/java/org/hibernate/criterion/LikeExpression.java @@ -93,7 +93,7 @@ public class LikeExpression implements Criterion { Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException { return new TypedValue[] { - criteriaQuery.getTypedValue( criteria, propertyName, value.toString().toLowerCase() ) + criteriaQuery.getTypedValue( criteria, propertyName, ignoreCase ? value.toString().toLowerCase() : value.toString() ) }; } }