Why MVC is not suitable for Windows application?

What is the Spring MVC hibernate application design?

  • I learnt Spring MVC few weeks ago, and I want to put this into practice now. I am about to build an applications that interacts heavily with the database, My question is: What is the best practice to build a spring mvc 4 application with Hibernate 4, Should I use this design pattern? Or this: Or should I use Spring Data JPA instead? Thanks already!

  • Answer:

    Both are using the MVC pattern. However, MVC's principle architectural design object is to separate the front end aspects from the structure of the data to increase maintainability of the application. It wasn't necessarily designed for performance but to enhance reusability. In some cases, people consider alternatives to MVC approaches such as the Actor model (espoused by Akka) for more messaging driven applications. The use of Spring Data JPA is definitely an option. It was created to simplify and templatize the creation of data access applications

William Emmanuel Yu at Quora Visit the source

Was this solution helpful to you?

Other answers

Both are using the same MVC pattern. Spring Data JPA is good to use. Underlying architecture used in Spring Data JPA uses Hibernate only. If you are dealing with database more often and concurrency is involved, I would recommend to have service layer with @Transactional annotation.

Vinod Chandak

Personally, I prefer the first design, because these type of applications request a layer based architecture which is mapped on the MVC architecture.

Dani Copaciu

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.