Hibernate positional parameters zero based
问题 I'm migrating a project from Hibernate 4.2.6 to 5.2.0. I noticed that for Hibernate 5.2.0, the native queries now require zero based parameter positionning. According to the JPA 2.1 Specification 3.10.13 Positional Parameters Only positional parameter binding and positional access to result items may be portably used for native queries, except for stored procedure queries for which named parameters have been defined. When binding the values of positional parameters, the numbering starts as “1