Hibernate; dynamic instantiation with report queries
Anonymous
Ranch Hand
Joined: Nov 22, 2008
Posts: 18944
posted
0
Using some of the advice within the new "Hibernate in Action" book, I am writing report queries to retrieve datbase data for reports.
Although projection within the report queries works just fine, what does not seem to work is using dynamic instantiation with these queries. I get the following error: "net.sf.hibernate.QueryException: class not found".
According to the book, the custom class used for such dynamic instantiation does not have to be a persistent class, and does not have to be mapped to the database or even be known to Hibernate; the custom class is just a data-transfer class, useful in report generation.
Do you have any idea why I would be getting the above exception? Any thoughts are appreciated.
pascal betz
Ranch Hand
Joined: Jun 19, 2001
Posts: 547
posted
0
can you show some code ?
subject: Hibernate; dynamic instantiation with report queries