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

Connect to database with hibernate and spring

 
Estefania fanny
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
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic