HHH-7322 : Add support for one-to-many associations to new metamodel
This commit is contained in:
parent
61f28dc3c0
commit
01ba4b71c7
|
@ -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(
|
||||
|
|
|
@ -81,6 +81,11 @@ public class PluralAttributeKeySourceImpl
|
|||
public List getColumnOrFormulaElements() {
|
||||
return keyElement.getColumn();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isForceNotNull() {
|
||||
return Helper.getBooleanValue( keyElement.isNotNull(), false );
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
@ -76,7 +76,7 @@ public class PluralAttributeKeyBinding {
|
|||
}
|
||||
|
||||
public TableSpecification getCollectionTable() {
|
||||
return foreignKey == null ? null : foreignKey.getSourceTable();
|
||||
return foreignKey.getSourceTable();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -37,10 +37,6 @@ public interface PluralAttributeSource
|
|||
|
||||
public PluralAttributeElementSource getElementSource();
|
||||
|
||||
/**
|
||||
* Return the
|
||||
* @return
|
||||
*/
|
||||
public TableSpecificationSource getCollectionTableSpecificationSource();
|
||||
|
||||
public String getCollectionTableComment();
|
||||
|
|
Loading…
Reference in New Issue