From cb738ceb800eed9b2d3a2c6ab0f8f66792ab6951 Mon Sep 17 00:00:00 2001 From: andygithubmf <78627199+andygithubmf@users.noreply.github.com> Date: Thu, 7 Apr 2022 13:54:52 -0400 Subject: [PATCH] HHH-15196 - Use default locale when lowercasing Locale.ROOT does not correctly lowercase Turkish "I"s. --- .../src/main/java/org/hibernate/criterion/LikeExpression.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/criterion/LikeExpression.java b/hibernate-core/src/main/java/org/hibernate/criterion/LikeExpression.java index e266a70d784d..b846cacc80d6 100644 --- a/hibernate-core/src/main/java/org/hibernate/criterion/LikeExpression.java +++ b/hibernate-core/src/main/java/org/hibernate/criterion/LikeExpression.java @@ -78,7 +78,7 @@ public String toSqlString(Criteria criteria,CriteriaQuery criteriaQuery) { @Override public TypedValue[] getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery) { - final String matchValue = ignoreCase ? value.toString().toLowerCase(Locale.ROOT) : value.toString(); + final String matchValue = ignoreCase ? value.toString().toLowerCase() : value.toString(); return new TypedValue[] { criteriaQuery.getTypedValue( criteria, propertyName, matchValue ) }; }