views:

189

answers:

1

There are two types of query parameters binding in the Hibernate Query. One is positioned parameter and another one is named parameter.

Can I use these two parameters in one Query?

+1  A: 

I Don't think so, if you try it, hibernate you give you the following error:

org.hibernate.hql.ast.QuerySyntaxException: cannot define positional parameter after any named parameters have been defined

Why would you want to do that?

marcos
I was wondering about that myself. :)
Tomislav Nakic-Alfirevic