• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

spring hibernate mysql example issues

 
Ranch Hand
Posts: 930
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying below example on spring hibernate mysql

http://www.mkyong.com/spring/maven-spring-hibernate-mysql-example/

Looks like POM file entries are missing in the link. I have added modified few after searching on the internaet long time as below


Still i have some errors in my project like 'HibernateDaoSupport cannot be resolved to a type' in StockDaoImpl and other classes.
I see compilation error in lines like where it is getting 'getHibernateTemplate()'
I already created table in the mysql database.

How to fix these errors and make this example work. Please advice
 
Rancher
Posts: 2759
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's why I don;t like Mykong. I don;t think he actually compiles his code. Besides that he doesn't follow good conventions. Spring itself has lots of samples.

HibernateDAO support is in spring-orm. Look at the Maven depdnency tree to see if you can find spring-orm in your tree. If not add, it
 
sai rama krishna
Ranch Hand
Posts: 930
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sure, I will try
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic