File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 ?
 
IntelliJ Java IDE
 
subject: Hibernate; dynamic instantiation with report queries
 
Threads others viewed
best way for storing Java objects into DB
Programatically Determining Dialect
What audience is your book aimed at
Hibernate support for Jasper reports
Hibernate Search in Action - A Framework
IntelliJ Java IDE