HHH-15279 NPE with Id on OneToOne referencing entity with multi-level EmbeddedId
This commit is contained in:
parent
4066fe0445
commit
81d749e930
|
@ -21,6 +21,7 @@ import org.hibernate.metamodel.mapping.EmbeddableMappingType;
|
||||||
import org.hibernate.metamodel.mapping.JdbcMapping;
|
import org.hibernate.metamodel.mapping.JdbcMapping;
|
||||||
import org.hibernate.metamodel.mapping.ManagedMappingType;
|
import org.hibernate.metamodel.mapping.ManagedMappingType;
|
||||||
import org.hibernate.metamodel.mapping.ModelPart;
|
import org.hibernate.metamodel.mapping.ModelPart;
|
||||||
|
import org.hibernate.metamodel.mapping.PropertyBasedMapping;
|
||||||
import org.hibernate.metamodel.mapping.SelectableConsumer;
|
import org.hibernate.metamodel.mapping.SelectableConsumer;
|
||||||
import org.hibernate.metamodel.mapping.SelectableMappings;
|
import org.hibernate.metamodel.mapping.SelectableMappings;
|
||||||
import org.hibernate.metamodel.model.domain.NavigableRole;
|
import org.hibernate.metamodel.model.domain.NavigableRole;
|
||||||
|
@ -142,6 +143,8 @@ public class EmbeddedAttributeMapping
|
||||||
null,
|
null,
|
||||||
inverseModelPart.getMappedFetchOptions(),
|
inverseModelPart.getMappedFetchOptions(),
|
||||||
keyDeclaringType,
|
keyDeclaringType,
|
||||||
|
inverseModelPart instanceof PropertyBasedMapping ?
|
||||||
|
( (PropertyBasedMapping) inverseModelPart ).getPropertyAccess() :
|
||||||
null,
|
null,
|
||||||
null
|
null
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue