My requirement is to get only the availability of records (not getting values). For this scenario,my problem is that what can be the better solution to improve performance between the JDBC query and the HQL Named query.
As I think,since named queries are loaded at the time of hibernate factories are loaded and therefore, it can be faster than jdbc.
Please not that This is not a normal HQL query, here I am asking about the Named Query.
Normal HQL and Named query can have different performance. Most of questions and answers are about normal HQL. My point here is the NAMED QUERY .