mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-10 13:14:50 +00:00
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.JdbcMapping;
|
||||
import org.hibernate.metamodel.mapping.ManagedMappingType;
|
||||
import org.hibernate.metamodel.mapping.ModelPart;
|
||||
import org.hibernate.metamodel.mapping.PropertyBasedMapping;
|
||||
import org.hibernate.metamodel.mapping.SelectableConsumer;
|
||||
import org.hibernate.metamodel.mapping.SelectableMappings;
|
||||
import org.hibernate.metamodel.model.domain.NavigableRole;
|
||||
@ -142,7 +143,9 @@ public EmbeddedAttributeMapping(
|
||||
null,
|
||||
inverseModelPart.getMappedFetchOptions(),
|
||||
keyDeclaringType,
|
||||
null,
|
||||
inverseModelPart instanceof PropertyBasedMapping ?
|
||||
( (PropertyBasedMapping) inverseModelPart ).getPropertyAccess() :
|
||||
null,
|
||||
null
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user