[hibernate-dev] deprecate positional parameters?

Hardy Ferentschik hardy at hibernate.org
Fri Feb 3 08:18:49 EST 2012


And just use named parameters?

query.setString("name", "Fritz");

I don't think have a strong opinion on that. I am fine w/ deprecating it.
What is the driving force behind? I recall that there were some Jira issues which
had some issues with positional parameters. Are they related?

--Hardy


On Feb 3, 2012, at 1:47 PM, Steve Ebersole wrote:

> What do y'all think about deprecating positional parameters in HQL?  I 
> am talking about the HQL-specific notion here, not the JPA notion of a 
> positional parameter which we obviously have to continue to support.
> 
> HQL positional params are in the form:
> from Cat c where c.name = ?
> 
> w/ setParameter(1, "steve")
> 
> -- 
> steve at hibernate.org
> http://hibernate.org
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev





More information about the hibernate-dev mailing list