Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What should I learn first, Spring or Hibernate? [closed]

I've just started learning Struts and I'm trying to be marketable for a good job as a Java programmer. My next decision would be choosing which to learn next, Spring or Hibernate?

Also do you guys have any suggestions or tips for me to be good? Thanks in advance!

like image 587
ajushi Avatar asked Apr 06 '09 16:04

ajushi


People also ask

What should we learn before Hibernate?

Prerequisites. We assume you have a good understanding of the Java programming language. A basic understanding of relational databases, JDBC, and SQL will be very helpful in understanding this tutorial.

Is Spring and Hibernate easy to learn?

Hibernate will be definitely easy as compared to spring, as Spring is little bit complex to learn that dependency injection and IOC containers.

How much time will it take to learn Spring and Hibernate?

It took me 12 days to study Spring and Spring MVC properly and start work on a project. For Hibernate if you know how SQL and database works Hibernate Framework would not be much difficult to understand. However to master in both the frameworks you have to keep learning and concurrently apply them to project.


2 Answers

I'd suggest learning Spring. Learn just the basics, and then when you do come to learn Hibernate you'll be able to take advantage of all the Spring helpers which make Hibernate easier to use.

There's also the point that Spring is useful in many layers instead of just at the data access part :)

like image 130
Jon Skeet Avatar answered Oct 21 '22 15:10

Jon Skeet


Spring and Hibernate are 2 very complimentary technologies and depending on the needs you may use both, either or none. But the fundamentals both of these frameworks rely upon are 100% marketable and more importantly are required for any seasoned professional.

There is little value in learning Hibernate without first obtaining fundamental knowledge on relational data modeling, relational database design, and transaction processing. So these should be your pre-requisites for Hibernate.

There is little value in learning Spring without first obtaining fundamental knowledge on design patterns, dependency injection, and application design (as general as it sounds you need to understand things like application tiers, class and package dependencies, MVC (sounds like you are familiar with this one via Struts), security and web standards, and of course fundamentals of OOD).

By learning both you will become if not marketable but at least very solid professional who is confident and comfortable in working on majority of Java (and not just Java) applications.

like image 43
topchef Avatar answered Oct 21 '22 15:10

topchef