By directly extending the `org.hibernate.Query` API - which is now deprecated - many methods we provide are consequentially also being flagged as deprecated. This can be avoided by changing the interface hierarchy. Indirectly extending `org.hibernate.Query` will still be needed to avoid breaking the API. |