| Per JPA 2.1 specification (section 4.6.4.1), positional parameters are designated by a question mark prefix followed by an integer (e.g. ?1). So I would expect that the code should be using the proper JPA positional parameter notation in order to expect JPA compliant behavior. Using the question mark notation designates the legacy Hibernate ordinal parameter placement which is and has always been 0-based. |