Skip to content

Stored procederes with out parameters not working under oracle 11 + hibernate 5.0.11 [DATAJPA-996] #1341

@spring-projects-issues

Description

@spring-projects-issues

alephx opened DATAJPA-996 and commented

After upgrading spring boot from 1.3 to 1.4 and hibernate from 4 to 5, stored procedure working earlier, now returns "PLS-00306: wrong number of types of arguments in call to YYYY".

Code is exactly the same as in reference documentation (5.4. Stored procedures), (only difference beside procedure and parameters names is other type of parameters - String instead of Integer ).

Little debugging shows change in hibernate 5 to using named parameters instead of position indexed as in 4.
But Spring Data JPA for returning out parameter passes name "out"
static final String SYNTHETIC_OUTPUT_PARAMETER_NAME = "out"
which differs from real procedure out parameter name, and as I guess is cause of error...


Affects: 1.10.4 (Hopper SR4)

2 votes, 5 watchers

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core supporttype: bugA general bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions