use of org.hibernate.sql.results.graph.tuple.TupleResult in project hibernate-orm by hibernate.
the class SqlTuple method createDomainResult.
@Override
public DomainResult createDomainResult(String resultVariable, DomainResultCreationState creationState) {
final JavaType javaType = ((SqmExpressible<?>) valueMapping).getExpressibleJavaType();
final int[] valuesArrayPositions = new int[expressions.size()];
for (int i = 0; i < expressions.size(); i++) {
valuesArrayPositions[i] = creationState.getSqlAstCreationState().getSqlExpressionResolver().resolveSqlSelection(expressions.get(i), javaType, creationState.getSqlAstCreationState().getCreationContext().getMappingMetamodel().getTypeConfiguration()).getValuesArrayPosition();
}
return new TupleResult(valuesArrayPositions, resultVariable, javaType);
}
Aggregations