code: private Query getNamedOrCreateQuery(String queryString) {
      if (queryString.charAt(0) == '@') return getSession().getNamedQuery(queryString.substring(1));
      else return getSession().createQuery(queryString);
    }
docs: Support "@named-query" or "from object" styles query
  
  @param queryString
  @return Hibernate query