I got below point everywhere which advocates the use of named queries
Often times, developer like to put HQL string literals scatter all over the Java code, this method is hard to maintaine and look ugly.
I am not getting how named queries avoid scattering of HQL strings. The only difference is that if we dont use named queries, queries are decalred inside daos(say as constants) but with named queries they are declared under entity objects(using annotation). But still HQL query strings are scattered in both the techniques. How named queries makes the code easy to maintain and readable?