Skip to content

DATAJPA-652 - Added support for REF_CURSOR output parameters for procedures. #130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

thomasdarimont
Copy link
Contributor

We now support detecting output parameters for stored-procedures with ParameterMode.REF_CURSOR. Previously we only considered parameters with OUT or INOUT mode as output parameters.

Note that since it is a bit tricky to setup a proper test case with hsql / eclipselink, I had to verify this with a standalone spring boot app:
https://gist.github.com/thomasdarimont/129bc15d0ccc459610c2
A proper test case will follow.

thomasdarimont pushed a commit that referenced this pull request Jan 16, 2015
…edures.

We now support detecting output parameters for stored-procedures with ParameterMode.REF_CURSOR. Previously we only considered parameters with OUT or INOUT mode as output parameters.

Note that since it is a bit tricky to setup a proper test case with hsql / eclipselink, I had to verify this with a standalone spring boot app:
https://gist.github.com/thomasdarimont/129bc15d0ccc459610c2
A proper test case will follow.

Original pull request: #130.
thomasdarimont pushed a commit that referenced this pull request Jan 16, 2015
…edures.

We now support detecting output parameters for stored-procedures with ParameterMode.REF_CURSOR. Previously we only considered parameters with OUT or INOUT mode as output parameters.

Note that since it is a bit tricky to setup a proper test case with hsql / eclipselink, I had to verify this with a standalone spring boot app:
https://gist.github.com/thomasdarimont/129bc15d0ccc459610c2
A proper test case will follow.

Original pull request: #130.
…edures.

We now support detecting output parameters for stored-procedures with ParameterMode.REF_CURSOR. Previously we only considered parameters with OUT or INOUT mode as output parameters.

Note that since it is a bit tricky to setup a proper test case with hsql / eclipselink, I had to verify this with a standalone spring boot app:
https://gist.github.com/thomasdarimont/129bc15d0ccc459610c2
A proper test case will follow.

Original pull request: #130.
…edures.

We now support detecting output parameters for stored-procedures with ParameterMode.REF_CURSOR. Previously we only considered parameters with OUT or INOUT mode as output parameters.

Added additional test cases for various procedure definition options.
Introduced new Dummy test type to avoid polluting the User test type anymore with  additional procedure definitions.

Added test for eclipse link and openjpa but I had to deactivate them since they currently need to be run with hsqldb v1 which doesn’t support stored procedures.
thomasdarimont pushed a commit that referenced this pull request Feb 4, 2015
…ed procedures.

We now support detecting output parameters for stored-procedures with ParameterMode.REF_CURSOR. Previously we only considered parameters with OUT or INOUT mode as output parameters.

Added additional test cases for various procedure definition options.
Introduced new Dummy test type to avoid polluting the User test type anymore with  additional procedure definitions. Added test for eclipse link and Openjpa but I had to deactivate them since they currently need to be run with HSQLDB V1 which doesn’t support stored procedures.

Original pull request: #130.
@odrotbohm odrotbohm closed this Feb 4, 2015
@odrotbohm odrotbohm deleted the issue/DATAJPA-652 branch February 4, 2015 11:47
@mkolesnikov
Copy link

This is still an issue. REF_CURSOR should be retrieved with getResultList() but Spring-Data-JPA tries to get it with getOutputParamenterValue() and it fails. getResultList() works fine with Hibernate 5.1.0. Tested on Spring-Data-JPA 1.9.4.

@vishnudevk
Copy link

I am experiencing this issue with Hibernate 5.2.10.Final

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants