File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Connect to database with hibernate and spring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Connect to database with hibernate and spring" Watch "Connect to database with hibernate and spring" New topic
Author

Connect to database with hibernate and spring

Estefania fanny
Greenhorn

Joined: Jun 06, 2013
Posts: 9
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

Joined: Mar 07, 2010
Posts: 1648
    
    7

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


[How To Ask Questions][Read before you PM me]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Connect to database with hibernate and spring