• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

New to Spring and Hibernate. Which to start?

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Everyone,
i am new to Spring and Hibernate. Can anyone suggest whether i should start learning Spring first or Hibernate first? Also if anyone could suggest Books for both Spring and Hibernate would be really helpful.
Thank you in advance
 
Sheriff
Posts: 9693
42
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I learned Hibernate from Pro Hibernate 3 and its a good book. Hibernate is ORM tool which is completely different from Spring. You can learn anything first, I know Hibernate but don't have much idea about Spring, but I'm sure you can also learn Spring before Hibernate...
 
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Both are totally different. spring is an Application Framework which you can use to build your business logic (actually much more than that). Hibernate is an ORM framework and you can use spring to couple Hibernate (as a matter of fact any ORM framework) and you will end up with a whole bunch of benefits.
 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need to learn them separately first and it doesn't matter in which order.
After that I suggest that you try to create some test app that will include both frameworks.
There are lot of examples on the net like this one
http://www.vaannila.com/spring/spring-hibernate-integration-1.html
 
Anupama Sudhakaran
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what all must i be knowing before starting on either Spring or Hibernate? i have a little knowledge of Java as in i know core and J2EE and a little of J2ME
 
Aleksandar Babic
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Knowledge of Java/J2EE is essential since those are java frameworks. You don't need j2me.
Best way to learn is to practice so grab some examples and start. The longer you think the more time you lose ;)
 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To get a quick start on both Spring and Hibernate and get productive while you learn, it might be work looking at Grails.
 
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Anupama Sudhakaran wrote:Hello Everyone,
i am new to Spring and Hibernate. Can anyone suggest whether i should start learning Spring first or Hibernate first? Also if anyone could suggest Books for both Spring and Hibernate would be really helpful.
Thank you in advance



I can tell you of one book to use and one book to stay away from.

An excellent tutorial for Spring and Hibernate is another Apress book called, "Spring Recipes: A Problem-Solution Approach" because it identifies many of the usual functions of Java applications and then describe the Spring solution with sample code. The book's chapter 9 will give an easy to to digest lesson on integrating Hibernate with Spring. The great thing about the book (and Spring) is that you don't need an application server to run a lot of the sample code in the book.

The one book that you should not consider is "Spring, A Developer's Notebook". Do not even read it because it will waste your time and confuse you.

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I strongly recommend 'Spring Recipes: A Problem-Solution Approach' for any beginner into Spring.
Personally I started with Spring in Action which is a good book as well.
Pro Hibernate 3 is a good book for Hibernate.
Start any one of them and be sure to do some small projects yourself.
 
author & internet detective
Posts: 41146
848
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Anupama Sudhakaran wrote:Can anyone suggest whether i should start learning Spring first or Hibernate first?


While you could go in either order, if you are very new to Java, I recommend starting with Hibernate. It's a bit more self contained since it deals with just one layer of an application.

Larry Chung wrote:The one book that you should not consider is "Spring, A Developer's Notebook". Do not even read it because it will waste your time and confuse you.


While I like the Developer's Notebook series, it is a "love it or hate it" style of book. I also find it is easier to read if you are a more experienced developer.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic