SPRING MVC THE PERSISTENCE LAYER
CREATION OF THE WEB APP PERSISTENCE LAYER We will now see, after creating the first domain class, how to create the persistence layer. We are going to create specific interfaces that provide methods, which are normally CRUD operations, that is, create, read, update and delete on the database. Once the interfaces are created, we will create the classes that implement them, which will have a fundamental notation, @Repository never to be forgotten in order to avoid Spring MVC errors. We create a new package, com.xantrix.webapp.repository. Since we have implemented the Articoli domain class, it is clear that the first interface [...]