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

Solution Verified - Updated

Environment

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

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.

Resolution

This issue1 is resolved in This content is not included.EAP 7.2 cumulative patch (CP) 1 and later releases.

Root Cause

This is a known issue (Content from hibernate.atlassian.net is not included.HHH-13194) in the EAP 7.2 GA.

Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.