We're updating the issue view to help you get more done. 

Deprecate HQL-specific (JDBC-style) positional parameters

Description

Deprecate the Hibernate-specific (JDBC-style) positional parameters in favor of the JPA-style.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 // HQL positional parameters: Query q = session.createQuery( "from Cat c where c.name = ?" ) .setParameter( 1, "Tabitha" ) ... // JPQL style: Query q = em.createQuery( "from Cat c where c.name = ?1" ) .setParameter( 1, "Tabitha" ) ... JPQL style, from Hibernate API: Query q = em.createQuery( "from Cat c where c.name = ?1" ) .setParameter( "1", "Tabitha" ) ...

This would allow the following from HQL:

1 2 3 Query q = session.createQuery( "from Cat c where c.name = ?1" ) .setParameter( 1, "Tabitha" ) ...

Environment

None

Status

Assignee

Steve Ebersole

Reporter

Steve Ebersole

Components

Fix versions

Priority

Major