diff --git a/hibernate-core/src/main/java/org/hibernate/type/ComponentType.java b/hibernate-core/src/main/java/org/hibernate/type/ComponentType.java index 7ca3588bd3..d245c1cd4b 100644 --- a/hibernate-core/src/main/java/org/hibernate/type/ComponentType.java +++ b/hibernate-core/src/main/java/org/hibernate/type/ComponentType.java @@ -691,7 +691,14 @@ public class ComponentType extends AbstractType implements CompositeTypeImplemen final EmbeddableInstantiator instantiator = mappingModelPart.getEmbeddableTypeDescriptor() .getRepresentationStrategy() .getInstantiator(); - return instantiator.instantiate( () -> assembled, session.getFactory() ); + final Object instance = instantiator.instantiate( () -> assembled, session.getFactory() ); + + final PropertyAccess parentInjectionAccess = mappingModelPart.getParentInjectionAttributePropertyAccess(); + if ( parentInjectionAccess != null ) { + parentInjectionAccess.getSetter().set( instance, owner ); + } + + return instance; } }