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 Problem mapping pojo with view using hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Problem mapping pojo with view using hibernate" Watch "Problem mapping pojo with view using hibernate" New topic
Author

Problem mapping pojo with view using hibernate

Varun Nayudu
Ranch Hand

Joined: Jun 26, 2006
Posts: 157
hi guys,

I am getting the following hibernate mapping exception



I am using netbeans ide and am trying to map a pojo with a view which i created in MySql. The pojo is a below


And its hibernate mapping file is as follows:



And the hibernate configuration file is as follows


The View which i am trying to map is named 'Usertabledata'

When i user the netbeans hql Query analyser with session: hibernate.cfg , i am able to see the result properly but when i run the app i get the above exception


SCJP 1.5, SCWCD 1.5
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336


java.lang.NoClassDefFoundError: Could not initialize class his1.NewHibernateUtil

his1.NewHibernateUtil is not on your classpath


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem mapping pojo with view using hibernate
 
Similar Threads
Unknown entity: java.lang.Float
Having problem with inserting data into table using hibernate
Hibernate mapping
Adding data using hibernate for Composite primary keys
Problem with inserting new data into database using hibernate