Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS 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
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

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
 
Thanks tiny ad, for helping me escape the terrible comfort of this chair.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic