Win a copy of Cloud Native PatternsE this week in the Cloud forum
or Natural Language Processing in the AI/ML 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
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Connect to database with hibernate and spring

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm Doing wrong access to the database:

Do not understand why the program does not access the data
The connection is the same as that of another project using Tapestry.
Below wrote the main code for connection, then there would be the DAOS.
Do I have to change something, or I can not make the connection to the database in this way when using JSP and java?

Thanks

What I do is this:

Parts of code from pom.xml


Parts of code from pom.xml



Parts of code from pom.xml



In spring configuration:

spring-config.xml


In hibernate configuration:

hibernate-config.xml


I hope that you understand me
Thanks
 
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm it looks like you are making thing far more difficult than they need to be. Perhaps try a simple tutorial to get things going. Here is one I found.

http://www.cavalr.com/blog/Spring_3_and_Annotation_Based_Hibernate_4_Example
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!