Hibernate, being an ORM and not a partial-ORM, does not support partial objects. This is quite handy, seeing as java is an object oriented language, and converting it to a partial-object language would be well outside hibernate's scope.
You have alternatives: either change your query to return scalars (return-scalar, ref docs section 16.3), or change it to HQL and use HQL's "select new YourObject( ... )" syntax (ref docs section 14.5).
...
So yellow pages is backed by hibernate, huh? Cool. Now if only it allowed more than 200 results...
_________________ Code tags are your friend. Know them and use them.
|