code: @Deprecated
      public static Query createQuery(Session session, String query) {
          return session.createQuery(query);
      }
docs: Creates a query
  
  @param session The session
  @param query The query
  @return The created query
  @deprecated Previously used for Hibernate backwards, will be removed in a future release.