SqmCriteriaNodeBuilder doesn't need to be a SqmCreationContext

This commit is contained in:
Gavin King 2024-09-10 08:20:06 +02:00
parent 4a974fe976
commit 1abc64fc65
2 changed files with 3 additions and 3 deletions

View File

@ -411,7 +411,7 @@ public class SemanticQueryBuilder<R> extends HqlParserBaseVisitor<Object> implem
? ParameterStyle.UNKNOWN ? ParameterStyle.UNKNOWN
: ParameterStyle.MIXED; : ParameterStyle.MIXED;
final TypeConfiguration typeConfiguration = creationContext.getNodeBuilder().getTypeConfiguration(); final TypeConfiguration typeConfiguration = creationContext.getTypeConfiguration();
final JavaTypeRegistry javaTypeRegistry = typeConfiguration.getJavaTypeRegistry(); final JavaTypeRegistry javaTypeRegistry = typeConfiguration.getJavaTypeRegistry();
this.integerDomainType = typeConfiguration.standardBasicTypeForJavaType( Integer.class ); this.integerDomainType = typeConfiguration.standardBasicTypeForJavaType( Integer.class );
this.listJavaType = javaTypeRegistry.resolveDescriptor( List.class ); this.listJavaType = javaTypeRegistry.resolveDescriptor( List.class );
@ -1436,7 +1436,7 @@ public class SemanticQueryBuilder<R> extends HqlParserBaseVisitor<Object> implem
public SqmSelectClause visitSelectClause(HqlParser.SelectClauseContext ctx) { public SqmSelectClause visitSelectClause(HqlParser.SelectClauseContext ctx) {
// todo (6.0) : primer a select-clause-specific SemanticPathPart into the stack // todo (6.0) : primer a select-clause-specific SemanticPathPart into the stack
final SqmSelectClause selectClause = final SqmSelectClause selectClause =
new SqmSelectClause(ctx.DISTINCT() != null, creationContext.getNodeBuilder() ); new SqmSelectClause( ctx.DISTINCT() != null, creationContext.getNodeBuilder() );
final HqlParser.SelectionListContext selectionListContext = ctx.selectionList(); final HqlParser.SelectionListContext selectionListContext = ctx.selectionList();
for ( HqlParser.SelectionContext selectionContext : selectionListContext.selection() ) { for ( HqlParser.SelectionContext selectionContext : selectionListContext.selection() ) {
selectClause.addSelection( visitSelection( selectionContext ) ); selectClause.addSelection( visitSelection( selectionContext ) );

View File

@ -202,7 +202,7 @@ import static org.hibernate.query.sqm.TrimSpec.fromCriteriaTrimSpec;
* *
* @author Steve Ebersole * @author Steve Ebersole
*/ */
public class SqmCriteriaNodeBuilder implements NodeBuilder, SqmCreationContext, Serializable { public class SqmCriteriaNodeBuilder implements NodeBuilder, Serializable {
private static final CoreMessageLogger LOG = CoreLogging.messageLogger( SqmCriteriaNodeBuilder.class ); private static final CoreMessageLogger LOG = CoreLogging.messageLogger( SqmCriteriaNodeBuilder.class );