HHH-7322 : Add support for one-to-many associations to new metamodel

This commit is contained in:
Gail Badner 2012-05-18 12:05:20 -07:00
parent 61f28dc3c0
commit 01ba4b71c7
4 changed files with 6 additions and 13 deletions

View File

@ -594,14 +594,6 @@ public class Binder {
createMetaAttributeContext( attributeBindingContainer, attributeSource )
);
/* TODO: needed???
Type resolvedType = heuristicType( hibernateTypeDescriptor );
bindHibernateResolvedType( attributeBinding.getHibernateTypeDescriptor(), resolvedType );
bindJdbcDataType( resolvedType, (AbstractValue) relationalValueBindings.get( 0 ).getValue() );
attributeBinding.getAttribute().resolveType(
bindingContexts.peek().makeJavaType( hibernateTypeDescriptor.getJavaTypeName() ) );
return attributeBinding;
*/
}
private void bindBasicCollectionElement(

View File

@ -81,6 +81,11 @@ public class PluralAttributeKeySourceImpl
public List getColumnOrFormulaElements() {
return keyElement.getColumn();
}
@Override
public boolean isForceNotNull() {
return Helper.getBooleanValue( keyElement.isNotNull(), false );
}
}
);
}

View File

@ -76,7 +76,7 @@ public class PluralAttributeKeyBinding {
}
public TableSpecification getCollectionTable() {
return foreignKey == null ? null : foreignKey.getSourceTable();
return foreignKey.getSourceTable();
}
/**

View File

@ -37,10 +37,6 @@ public interface PluralAttributeSource
public PluralAttributeElementSource getElementSource();
/**
* Return the
* @return
*/
public TableSpecificationSource getCollectionTableSpecificationSource();
public String getCollectionTableComment();