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

This commit is contained in:
Chris Cranford 2016-10-26 11:09:48 -04:00
parent 1b8d94ddba
commit 468ed1b609
1 changed files with 2 additions and 1 deletions

View File

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