From 2796240cf5e9f1c258234b2d203d13c14d18687f Mon Sep 17 00:00:00 2001 From: Strong Liu Date: Thu, 18 Mar 2010 21:49:48 +0000 Subject: [PATCH] HHH-2997 LikeExpression case sensitive not working properly git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@19026 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- core/src/main/java/org/hibernate/criterion/LikeExpression.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() ) }; } }