Annotation « Performance « JPA Q&A





1. What are the advantages of using named queries under Hibernate Annotation    stackoverflow.com

Are there any advantages of using named queries vs what we have? Looking at performance, usability, maintainability etc etc.... In our application we have defined our queries as such:

private static final ...

2. Are Hibernate named HQL queries (in annotations) optimised?    stackoverflow.com

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 ...

3. Incredibly poor performance after switching to annotations    forum.hibernate.org

we are currently using hibernate 3.3.2 and spring 2.5.6. we were using xdoclet to generate our hibernate cfg files from our java files. we switched to using annotations. nothing else was changed in our codebase. we have seen a performance degradation of at list 4 fold and in some cases 10 fold. we have also noticed that we need to allocate ...