JPA, Hibernate, Spring MVC, Maven - Definition

Asked

Viewed 323 times

6

I’m having a lot of questions about definitions! My goal is to build a system architecture, but the definitions of JPA, HIBERNATE, SPRING MVC, MAVEN, are obscure.

JPA: It is nothing more than a specification (ok)

Hibernate: Persistence Provider, who will implement JPA specifications.

SPRING MVC: Is it an ORM framework? (I read in some places that yes).

Maven: I don’t know.

Thinking about an assembly of an architecture, what communicates with what?

1 answer

5

good evening, we will clarify each of these points.

JPA - That’s what you said.

Hibernate - That’s what you said.

Spring MVC - It is a framework, however not an ORM, in case your ORM would be the own Hibernate, Spring MVC acts on the Web layer of your application it will be responsible for managing the entire layer of controllers of your application, will provide common facilities of MVC frameworks such as databinds for your application’s classes, treat aspects of http protocol, expose endpoints of your application among other things, another very important thing to be said is that Spring MVC does not work alone, everything revolves around the core of Spring which is a container of Beans from your application, and this will provide you with many features, it is kind of hard to get into detail many details about it, that alone would be a post part, but I’ll put some references so you can get more information.

Maven Your build tool, with it you can do various tasks, from managing the lifecycle of your application, through "Goals", you can also manage dependencies of your application and use plugins to meet specific needs of your application, let’s assume for example that when running a Goal that is provided by a plugin, you would like to deploy your application on a Tomcat server, MAVEN has plugins that have these features.

A very interesting image of how the architecture of the Spring projects is prepared.

inserir a descrição da imagem aqui

REFERENCES

I hope to have helped, anything can ask I answer in the comments the rest.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.