Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Problem mapping pojo with view using hibernate

 
Ranch Hand
Posts: 160
  • 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
 
Bartender
Posts: 10336
Hibernate Eclipse IDE 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
 
today's feeble attempt to support the empire
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic