fixing org.hibernate.test.discriminator.SimpleInheritanceTest test failure

This commit is contained in:
Strong Liu 2012-02-14 06:52:52 +08:00
parent c0c89697bd
commit 8ee2bfce64
1 changed files with 5 additions and 4 deletions

View File

@ -1219,9 +1219,8 @@ public class Binder {
EMPTY_PROPERTIES
);
}
}
if ( resolvedType != null ) {
} else {
attributeBinding.getHibernateTypeDescriptor().setResolvedTypeMapping( resolvedType );
pushHibernateTypeInformationDownIfNeeded( attributeBinding, resolvedType );
}
}
@ -1232,7 +1231,9 @@ public class Binder {
}
String typeName = determineTypeName( hibernateTypeDescriptor );
Properties typeParameters = getTypeParameters( hibernateTypeDescriptor );
return getHeuristicType( typeName, typeParameters );
Type type = getHeuristicType( typeName, typeParameters );
hibernateTypeDescriptor.setResolvedTypeMapping( type );
return type;
}
private static String determineTypeName(HibernateTypeDescriptor hibernateTypeDescriptor) {