[hibernate-dev] NativeQuery and parameters
brett at hibernate.org
Tue Sep 20 21:51:42 EDT 2016
+1 across the board.
On 09/20/2016 08:59 PM, Steve Ebersole wrote:
> In the interest of questioning everything, just to make sure we are all on
> the same page, Hibernate's support for native SQL queries currently
> recognizes named parameters, positional parameters as well as JDBC-style
> JPA only defines support for "JDBC-style parameters" as valid for native
> SQL queries:
> It is assumed that for native queries the parameters themselves use the SQL
> syntax (i.e., “?”, rather than “?1”).
> Furthermore Hibernate does not support a native query using both positional
> parameters and JDBC-style parameters in the same query because it causes a
> non-determinism wrt the positions.
> I assume we want to continue to support that full complement of parameter
> types, with the positional/JDBC-style caveat.
> Further I assume we will hook up the use of any non-JDBC-style parameters
> in with the "strict JPA compliance" checking and throw an error when
> Anyone have objections to any of that?
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
More information about the hibernate-dev