wood burning stoves 2.0*
The moose likes Other Application Frameworks and the fly likes MVC for spring+hibernate projects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "MVC for spring+hibernate projects" Watch "MVC for spring+hibernate projects" New topic
Author

MVC for spring+hibernate projects

Sagar Kale
Ranch Hand

Joined: May 02, 2008
Posts: 188
Hi All,

I just started learning spring.

Since I have never worked on any project which has spring, I just wanted to know which MVC is commonly used for spring + hibernate project. Is it Spring's MVC or Struts MVC.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Hmm, there's Struts, SpringMVC, Wicket, Stripes, JSF, SEAM all of which are commonly used with Hibernate, plus others that I didn't mention.


GenRocket - Experts at Building Test Data
Sagar Kale
Ranch Hand

Joined: May 02, 2008
Posts: 188
The reason I am asking this is because I know Struts, I have learned hibernate, I have learned everything in Spring except MVC. I am avoiding to learn Spring's MVC because

1) Right now I don't have time to learn it.
2) Since I know struts well and if Struts is more often used with Spring and hibernate ( because Struts is more popular as a MVC framework ), then my efforts learning Spring MVC will go waste.

I have not worked any project on Spring. So I don't know which MVC is used more in Spring projects.
[ December 09, 2008: Message edited by: Sagar Kale ]
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

If you know struts and don't have time to learn something new then just use struts. Lots of people use Struts with Hibernate. Hibernate really doesn't care what MVC framework you use. Personally, I prefer Stripes for most everything I do. It's enough like Struts that you would be able to pick it up quickly and easily. It has support for Spring as well as an addon package (additional download) called Stripersist to integrate Hibernate/JPA.
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
Sagar Kale - it seems like it would be beneficial to you to learn the Model-View-Controller (MVC) object-oriented design pattern. If you learn and understand the design pattern, then you most likely will understand the implementations much better.

Good luck!
Sagar Kale
Ranch Hand

Joined: May 02, 2008
Posts: 188
Hi Gregg and James,

Thank you very much for guidance.
 
 
subject: MVC for spring+hibernate projects
 
Similar Threads
Error on making a project with m2e + eclipse indigo + springmvc-archetype
Spring MVC Problem
Spring
Where to use Spring?
hibernate follows MVC2 architecture