HHH-16540 Correct navigable path for embeddable valued path interpretation with plural attribute join

This commit is contained in:
Marco Belladelli 2023-05-25 16:11:57 +02:00
parent c226cf681c
commit 54c9c1010e
No known key found for this signature in database
GPG Key ID: D1D0C3030AE3AA35

View File

@ -4102,7 +4102,7 @@ else if ( actualModelPart instanceof EmbeddableValuedModelPart ) {
final EmbeddableValuedModelPart mapping = (EmbeddableValuedModelPart) actualModelPart;
result = new EmbeddableValuedPathInterpretation<>(
mapping.toSqlExpression(
getFromClauseAccess().findTableGroup( path.getLhs().getNavigablePath() ),
findTableGroup( navigablePath.getParent() ),
currentClauseStack.getCurrent(),
this,
getSqlAstCreationState()