Hibernate StatelessSession methods return the deprecated type org.hibernate.Query in JBoss EAP 7.2

Solution Verified - Updated -

Issue

  • The interface org.hibernate.query.Query was introduced as a replacement for the deprecated org.hibernate.Query
  • org.hibernate.StatelessSession methods inherited from the super-interface org.hibernate.query.QueryProducer still return the deprecated Query interface.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 7.2
  • Hibernate 5.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In