• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate; dynamic instantiation with report queries

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 547
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you show some code ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic