Hi,
I'm using an HQL projection query that extracts the discriminator using the class attribute. What I would like to get is not the discriminator, but the class name, without having to load the objects (that is, keeping the projection).
Is there any way to do this in hibernate 2.1.8 (sorry, long project, started a few months before hibernate 3 was available)? Maybe not in HQL but post processing? I know I can do it by hand, but I'd prefer a general method that does not need code modification every time I add a class to the inheritance hierarchy.
|