That query will generate a single entry no matter what parameter values you are using. Only if you change the query structure by adding more clauses, will Hibernate generate a new query entry in the plan cache and in the statistics.