david wrote:
Not sure if this is what your after but HQL does allow a query to be projected and this then can be stored in a Data object. The result is a List of object from the resultset, eg,
sess.find("select new DataObject(o.field1, o.field2) from o in class DomainObject ");
So this would allow me to limit the fields being pulled from the database in the case of presenting a user with a larger list objects where we only want to show them *10%* of the fields--- in hopes of improving performance?