Are Hibernate named HQL queries (in annotations) optimised?
- by Graham Lea
A new colleague has just suggested using named HQL queries in Hibernate with annotations (i.e. @NamedQuery) instead of embedding HQL in our XxxxRepository classes.
What I'd like to know is whether using the annotation provides any advantage except for centralising quueries?
In particular, is there some performances gain, for instance because the…