File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Spring and the fly likes Spring Beginners Question! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring Beginners Question!" Watch "Spring Beginners Question!" New topic

Spring Beginners Question!

Lisa Bass

Joined: Jan 29, 2009
Posts: 6
Guys i have a question?
i m very new to Spring n hibernate.

So if i have used the hiberbate in my project for dao layer..exactly like here
then can i said that i have used Spring for my project.

Meaning if i have used the same code for database access layer as above link,is that mean that i used both spring n hibernate or i have just used the hibernate.

Please help me
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

If you have anything in your project which is managed by Spring, then you can say that you are using Spring. How do you access your DAO ?

[My Blog]
All roads lead to JavaRanch
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

No, there is absolutely nothing in that tutorial that is Spring related. It is only about Hibernate.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Shinelin Samuel
Ranch Hand

Joined: Mar 01, 2010
Posts: 55
Spring framework allows you to integrate with external APIs other than its own features. One of them is integration with ORM APIs like Hibernate.

If you use org.springframework.orm.hibernate3.HibernateTemplate as your session factroty in your Spring config file, then you have Spring integrated with Hibernate in your project.

Alaa Nassef
Ranch Hand

Joined: Jan 28, 2008
Posts: 471

The tutorial has nothing to do with spring. If you want to use spring, you'll have to define some spring managed beans (in an XML file or using annotations).

Visit my blog:
I agree. Here's the link:
subject: Spring Beginners Question!
It's not a secret anymore!