[hibernate-dev] Revert API change in org.hibernate.Query
sanne at hibernate.org
Sun Jun 5 12:00:20 EDT 2016
I just noticed that the org.hibernate.Query interface was deprecated
in 5.2, with the suggestion to use org.hibernate.query.Query now.
That's ok, but it seems the "deprecation process" also forced some API
changes already on the deprecated interface which seem might have been
The builder methods on org.hibernate.Query used to allow returning
"this" to chain methods,
although this seems no longer possible as the API now declares the
return type should be the new one, org.hibernate.query.Query.
Could we fix this by relaxing the return to the older deprecated method?
org.hibernate.query.Query<R> setFirstResult(int startPosition);
org.hibernate.Query<R> setFirstResult(int startPosition);
More information about the hibernate-dev