HHH-18338 o.h.UnknownEntityTypeException: Unable to locate persister thrown when an embeddable object is loaded before the entity it references

This commit is contained in:
Andrea Boriero 2024-07-11 13:31:48 +02:00 committed by Andrea Boriero
parent 287bda68a0
commit 63171d365a
1 changed files with 1 additions and 1 deletions

View File

@ -676,7 +676,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;