HHH-14916 : inside `renderFetches`, `renderJoins` called if the `fetch` is `instanceof` `Form` interface.

This commit is contained in:
Ratul sharker 2021-11-14 17:43:21 +06:00 committed by Christian Beikov
parent 76eeb6fb5e
commit 1a641695fa
1 changed files with 6 additions and 0 deletions

View File

@ -19,6 +19,7 @@ import java.util.Set;
import javax.persistence.criteria.AbstractQuery; import javax.persistence.criteria.AbstractQuery;
import javax.persistence.criteria.Expression; import javax.persistence.criteria.Expression;
import javax.persistence.criteria.Fetch; import javax.persistence.criteria.Fetch;
import javax.persistence.criteria.From;
import javax.persistence.criteria.Join; import javax.persistence.criteria.Join;
import javax.persistence.criteria.JoinType; import javax.persistence.criteria.JoinType;
import javax.persistence.criteria.ParameterExpression; import javax.persistence.criteria.ParameterExpression;
@ -483,6 +484,11 @@ public class QueryStructure<T> implements Serializable {
.append( ( (FromImplementor) fetch ).renderTableExpression( renderingContext ) ); .append( ( (FromImplementor) fetch ).renderTableExpression( renderingContext ) );
renderFetches( jpaqlQuery, renderingContext, fetch.getFetches() ); renderFetches( jpaqlQuery, renderingContext, fetch.getFetches() );
if (fetch instanceof From) {
From from = (From) fetch;
renderJoins(jpaqlQuery, renderingContext, from.getJoins());
}
} }
} }
} }