Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem mapping pojo with view using hibernate

 
Varun Nayudu
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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

his1.NewHibernateUtil is not on your classpath
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic