Forums Register Login

Problem mapping pojo with view using hibernate

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
 


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


his1.NewHibernateUtil is not on your classpath
On top of spaghetti all covered in cheese, there was this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 2702 times.
Similar Threads
Having problem with inserting data into table using hibernate
Adding data using hibernate for Composite primary keys
Hibernate mapping
Unknown entity: java.lang.Float
Problem with inserting new data into database using hibernate
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 05:27:02.