Queries.setParams() assume 0 indexing

Steps to reproduce

Position parameters in JPA's query language are implemented differently by Hibernate and EclipseLink. The former start at 0 and the later 1. We use EclipseLink but the code starts from 0.

I don't believe the code us used by anything in the community version but we have a custom endpoints that does call the code.

Activity

Show:
James Perrin
November 8, 2018, 11:14 AM

https://stackoverflow.com/questions/37973915/hibernate-positional-parameters-zero-based

JPA states start from 1, Hibernate 5.2.1 fixes this, so the code should start from 1 for correct behaviour.

Assignee

James Perrin

Reporter

James Perrin

Severity

Non Functioning

Tags (folksonomy)

Components

Fix versions

Affects versions

Priority

Minor
Configure