HHH-6371 - Develop metamodel binding creation using a push approach

This commit is contained in:
Steve Ebersole 2011-07-13 17:39:09 -05:00
parent 4e18a56850
commit 229842aadb
2 changed files with 6 additions and 5 deletions

View File

@ -914,10 +914,11 @@ public class EntityBinder {
ColumnRelationalStateImpl columnRelationsState = new ColumnRelationalStateImpl(
simpleAttribute, bindingContext.getMetadataImplementor()
);
TupleRelationalStateImpl relationalState = new TupleRelationalStateImpl();
relationalState.addValueState( columnRelationsState );
attributeBinding.initialize( relationalState );
// TupleRelationalStateImpl relationalState = new TupleRelationalStateImpl();
// relationalState.addValueState( columnRelationsState );
//
// attributeBinding.initialize( relationalState );
attributeBinding.initialize( columnRelationsState );
}
if ( ! attribute.isTypeResolved() ) {

View File

@ -62,7 +62,7 @@ class AttributeTypeResolver {
final HibernateTypeDescriptor hibernateTypeDescriptor = attributeBinding.getHibernateTypeDescriptor();
Type resolvedHibernateType = attributeBinding.getHibernateTypeDescriptor().getResolvedTypeMapping();
Type resolvedHibernateType = hibernateTypeDescriptor.getResolvedTypeMapping();
if ( resolvedHibernateType == null ) {
resolvedHibernateType = determineHibernateType( attributeBinding );
if ( resolvedHibernateType != null ) {