From 468ed1b60914d8f1021e9535cb69d8dc4298b5d6 Mon Sep 17 00:00:00 2001 From: Chris Cranford Date: Wed, 26 Oct 2016 11:09:48 -0400 Subject: [PATCH] HHH-11205 - Fixed nationalization support when field type is char. --- .../java/org/hibernate/cfg/annotations/SimpleValueBinder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/cfg/annotations/SimpleValueBinder.java b/hibernate-core/src/main/java/org/hibernate/cfg/annotations/SimpleValueBinder.java index 6da3198707..17132c1225 100644 --- a/hibernate-core/src/main/java/org/hibernate/cfg/annotations/SimpleValueBinder.java +++ b/hibernate-core/src/main/java/org/hibernate/cfg/annotations/SimpleValueBinder.java @@ -281,7 +281,8 @@ public class SimpleValueBinder { type = StringNVarcharType.INSTANCE.getName(); explicitType = type; } - else if ( buildingContext.getBuildingOptions().getReflectionManager().equals( returnedClassOrElement, Character.class ) ) { + else if ( buildingContext.getBuildingOptions().getReflectionManager().equals( returnedClassOrElement, Character.class ) || + buildingContext.getBuildingOptions().getReflectionManager().equals( returnedClassOrElement, char.class ) ) { if ( isArray ) { // nvarchar type = StringNVarcharType.INSTANCE.getName();