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. _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev