15,000 Jobs Available in:
Java, ASP, C#, PHP, SQL, SAP, MySQL and many more.
- Class Quick -
The moose likes Object Relational Mapping and the fly likes Hibernate; dynamic instantiation with report queries Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "Hibernate; dynamic instantiation with report queries" Watch "Hibernate; dynamic instantiation with report queries" New topic
Author

Hibernate; dynamic instantiation with report queries

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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
can you show some code ?
 
 
subject: Hibernate; dynamic instantiation with report queries
 
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com