This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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: 159
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
 
Have you checked out Aspose?
 
subject: Problem mapping pojo with view using hibernate
 
It's not a secret anymore!