Skip to content Skip to sidebar Skip to footer

Hibernate Result Transformer Cannot Instantiate Resultclass

I have a SQL query that I want to map to a class. I'm using Hibernate's createSQLQuery and then using a Result Transformer for the class I'd like to map to. But Hibernate is thro

Solution 1:

Indeed, this instantiation can be done only when the instantiated class is not an inner class...

You can either refactor the inner class into a normal class or make it static.

Hope this helps a little :)!

Post a Comment for "Hibernate Result Transformer Cannot Instantiate Resultclass"