Hi all,
What I want to do:
I am trying to execute HQL "select cat.id, cat.name from Cat cat", and it should return partially filled Cat objects, like Criteria projections with ResultTransformer.
I wonder, if this is even possible with current Hibernate versions (3.0.1). I saw that getReturnAliases() has been added to Query API, but there is still no setResultTransformer() method. Does anyone have expierence with this? Would it make sense to subclass AliasToBeanResultTransformer and add something like this?
Code:
transformList(List original, String[]returnAlias);
I would appreciate any ideas or comments.
Thanks,
John