HHH-11205 - Fixed nationalization support when field type is char.

(cherry picked from commit 468ed1b609)
This commit is contained in:
Chris Cranford 2016-10-26 11:09:48 -04:00 committed by Gail Badner
parent 889dc0c1be
commit 79c6c1652c
1 changed files with 2 additions and 1 deletions

View File

@ -283,7 +283,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();