[hibernate-dev] SQM and Query#getReturnTypes

Steve Ebersole steve at hibernate.org
Tue Jan 19 13:53:28 EST 2016


There are a few reasons I want to remove Query#getReturnTypes.  At least in
its current form.  Currently it simply returns the Hibernate Type(s) that
the query will return.

One of the big reasons I want to remove this method is that it is simply
not expressive enough to handle some not-so-edge-cases like dynamic
instantiation queries (we'd have no idea about a Type for the
instantiation).

So the main question is whether to simply remove that method or whether
some representation of the Query return(s) is valuable.  If this
information is deemed valuable, the idea would be to develop a contract
that caters to both "normal selections" and dynamic instantiations.


More information about the hibernate-dev mailing list