From 3fcb58646b7c33499f5441ffcbf15a38a809d506 Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Thu, 11 Jul 2024 13:31:48 +0200 Subject: [PATCH] HHH-18338 o.h.UnknownEntityTypeException: Unable to locate persister thrown when an embeddable object is loaded before the entity it references --- .../org/hibernate/persister/entity/AbstractEntityPersister.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java b/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java index 50c00f2a38..65c9812c10 100644 --- a/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java +++ b/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java @@ -660,7 +660,7 @@ public abstract class AbstractEntityPersister else { final Column column = (Column) selectable; colNames[k] = column.getQuotedName( dialect ); - colWriters[k] = column.getWriteExpr( prop.getValue().getSelectableType( factory, k ), dialect ); + colWriters[k] = column.getWriteExpr( prop.getValue().getSelectableType( creationContext.getMetadata(), k ), dialect ); } } propertyColumnNames[i] = colNames;