hibernate createQuery deprecated

hibernate createQuery deprecated

in hibernate doc, createQuery is deprecated

https://docs.jboss.org/hibernate/orm/6.0/javadocs/org/hibernate/Session.html#createQuery(java.lang.String)

new use is

<R> Query<R> createQuery​(String queryString, Class<R> resultClass)

hibernatre org post says 

HQL is not going to be phased out, simply this method has been deprecated in favour of createSelectionQuery or createQuery(String, Class)

https://discourse.hibernate.org/t/createquery-deprecated-means-were-phasing-out-hql/6733