Skip to content

DATAJPA-1145 - Update StoredProcedureJpaQuery.java #207

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 1 commit into from

Conversation

vishnudevk
Copy link

@vishnudevk vishnudevk commented Jul 8, 2017

storedProcedureQuery.getOutputParameterValue(i) for RefCursor is not supported by Hibernate.
we have to use storedProcedureQuery.getResultList();

Change to call getResultList() instead of getOutputParameterValue() when hibernate
throw new ParameterMisuseException( "REF_CURSOR parameters should be accessed via results" );

Fix for the issue https://jira.spring.io/browse/DATAJPA-1145

  • You have read the Spring Data contribution guidelines.
  • There is a ticket in the bug tracker for the project in our JIRA.
  • You use the code formatters provided here and have them applied to your changes. Don’t submit any formatting related changes.
  • You submit test cases (unit or integration tests) that back your changes.
  • You added yourself as author in the headers of the classes you touched. Amend the date range in the Apache license header if needed. For new types, add the license header (copy from another file and set the current year only).

storedProcedureQuery.getOutputParameterValue(i) for RefCursor is not supported by Hibernate. 
we have to use storedProcedureQuery.getResultList();

Change to call getResultList() instead of getOutputParameterValue() when hibernate
throw new ParameterMisuseException( "REF_CURSOR parameters should be accessed via results" );

Fix for the issue https://jira.spring.io/browse/DATAJPA-1145
@pivotal-issuemaster
Copy link

@vishnudevk Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@schauder schauder changed the title Update StoredProcedureJpaQuery.java DATAJPA-1145 - Update StoredProcedureJpaQuery.java Jul 10, 2017
@schauder
Copy link
Contributor

schauder commented Aug 1, 2017

As mentioned in https://jira.spring.io/browse/DATAJPA-1145 we won't merge this one. See Jira for ongoing work to fix the issue.

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.

3 participants