Skip to content
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

@Procedure can not return a ResultList using JPA 2.1 [DATAJPA-801] #1163

Closed
spring-projects-issues opened this issue Sep 17, 2015 · 3 comments
Labels
status: superseded An issue that has been superseded by another

Comments

@spring-projects-issues
Copy link

ofbiz opened DATAJPA-801 and commented

If a procedure returns a select from a table, and if we try to map into a JPA repository, it gives error saying we do not have the output parameter specified. If a procedure does not have output parameters, so Spring Data should understand it and just map the result list into domain.

For example:

interface TestRepository extends JpaRepository<Test, Serializable> {

    @Procedure(procedureName = "Test.dbo.calculate")
    Test calculate(final String type, final Integer id);
}

Via EclipseLink message error:

The CallableStatement.registerOutParameter(int, int, String method is not implemented.

Via Hibernate message error:

Caused by: java.sql.SQLException: Output parameters have not yet been processed. Call getMoreResults().
	at net.sourceforge.jtds.jdbc.ParamInfo.getOutValue(ParamInfo.java:159)
	at net.sourceforge.jtds.jdbc.JtdsCallableStatement.getOutputValue(JtdsCallableStatement.java:124)
	at net.sourceforge.jtds.jdbc.JtdsCallableStatement.getBytes(JtdsCallableStatement.java:271)

Affects: 1.9 GA (Gosling), 1.10.1 (Hopper SR1)

1 votes, 3 watchers

@spring-projects-issues
Copy link
Author

ofbiz commented

Hi guys, I wonder if you could take a look at this? Tks!

@spring-projects-issues
Copy link
Author

Oliver Drotbohm commented

We definitely can. However, please don't mess with the ticket priorities

@spring-projects-issues spring-projects-issues added type: bug A general bug in: core Issues in core support labels Dec 30, 2020
@mp911de mp911de added status: superseded An issue that has been superseded by another and removed type: bug A general bug in: core Issues in core support labels Jul 13, 2023
@mp911de
Copy link
Member

mp911de commented Jul 13, 2023

Fixed via #1959

@mp911de mp911de closed this as not planned Won't fix, can't repro, duplicate, stale Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: superseded An issue that has been superseded by another
Projects
None yet
Development

No branches or pull requests

3 participants