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 b1885184e6
commit 3fcb58646b
1 changed files with 1 additions and 1 deletions

View File

@ -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;