This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring Beginners Question!" Watch "Spring Beginners Question!" New topic
Author

Spring Beginners Question!

Lisa Bass
Greenhorn

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 http://techtracer.com/2008/12/30/the-great-hibernate-tutorial-a-great-jump-start-for-beginners/
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
Thanks
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

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
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

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

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
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.

Regards,
Shinelin
Alaa Nassef
Ranch Hand

Joined: Jan 28, 2008
Posts: 460
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: http://jnassef.blogspot.com/
 
jQuery in Action, 2nd edition
 
subject: Spring Beginners Question!