• 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

Connect to database with hibernate and spring

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic