Use ResultSetMapping from ProcedureCall instead of creating a new one

This commit is contained in:
Andrea Boriero 2021-09-30 13:44:28 +02:00 committed by Christian Beikov
parent 7e92c29515
commit 8df7a3ab16
2 changed files with 5 additions and 1 deletions

View File

@ -986,4 +986,7 @@ public class ProcedureCallImpl<R>
return getResultList().stream(); return getResultList().stream();
} }
public ResultSetMapping getResultSetMapping() {
return resultSetMapping;
}
} }

View File

@ -155,9 +155,10 @@ public class OutputsImpl implements Outputs {
jdbcStatement, jdbcStatement,
resultSet resultSet
); );
ResultSetMapping resultSetMapping = new ResultSetMappingImpl( null );
final ProcedureCallImpl procedureCall = (ProcedureCallImpl) context; final ProcedureCallImpl procedureCall = (ProcedureCallImpl) context;
final ResultSetMapping resultSetMapping = procedureCall.getResultSetMapping();
final JavaTypeDescriptorRegistry javaTypeDescriptorRegistry = context.getSession() final JavaTypeDescriptorRegistry javaTypeDescriptorRegistry = context.getSession()
.getTypeConfiguration() .getTypeConfiguration()
.getJavaTypeDescriptorRegistry(); .getJavaTypeDescriptorRegistry();