Hi every one.
After having my project upgraded to Spring Boot 3 (with Hibernate 6), I found out that the new implementation of StoredProcedureQuery.getResultList() no longer works as expected. Here is an example. Please run the test I added in this commit to see it fails.
I debugged and found out that
hibernate-core/src/main/java/org/hibernate/result/internal/OutputsImpl.java#L162
seems to be the problem.
I don’t really understand what the result set mapping has to do with INOUT parameters because I think they are two different concerns (correct me if I am wrong, I am an ordinary Hibernate user and I do not understand the internal implementation well).
I tried removing that block of code, basically result set extraction has no thing to do with INOUT parameter, and it seems to work. Please checkout this commit and see that it returns the correct result.
Please let me know if what I found was correct and I am eligible to raise a PR to make my first contribution to the framework.
I am looking forward to hearing from Hibernate team soon. Thank you.