mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-10 05:04:52 +00:00
HHH-7063 : Many-to-one attribute type not resolved
This commit is contained in:
parent
8ee2bfce64
commit
2d5ae1aecc
@ -602,7 +602,12 @@ else if ( attributeSource.getNature() == SingularAttributeNature.MANY_TO_ONE ) {
|
||||
attributeSource.getReferencedEntityAttributeName(),
|
||||
relationalValueBindings
|
||||
);
|
||||
final String referencedEntityName = attributeSource.getReferencedEntityName();
|
||||
resolveTypeInformation( attributeSource.getTypeInformation(), attributeBinding );
|
||||
resolveToOneInformation(
|
||||
attributeSource,
|
||||
(ManyToOneAttributeBinding) attributeBinding
|
||||
);
|
||||
final String referencedEntityName = attributeBinding.getReferencedEntityName();
|
||||
EntityBinding referencedEntityBinding = getEntityBinding( referencedEntityName );
|
||||
if ( referencedEntityBinding == null ) {
|
||||
EntitySource source = sourcesByName.get( referencedEntityName );
|
||||
@ -613,12 +618,6 @@ else if ( attributeSource.getNature() == SingularAttributeNature.MANY_TO_ONE ) {
|
||||
: referencedEntityBinding.getHierarchyDetails().getEntityIdentifier().getValueBinding();
|
||||
attributeBinding.resolveReference( referencedAttrBinding );
|
||||
referencedAttrBinding.addEntityReferencingAttributeBinding( attributeBinding );
|
||||
|
||||
resolveTypeInformation( attributeSource.getTypeInformation(), attributeBinding );
|
||||
resolveToOneInformation(
|
||||
attributeSource,
|
||||
(ManyToOneAttributeBinding) attributeBinding
|
||||
);
|
||||
}
|
||||
else {
|
||||
throw new NotYetImplementedException();
|
||||
|
Loading…
x
Reference in New Issue
Block a user