- Develop a store project using the frameworks Spring Boot and Hibernate.
- Know the main features of Spring Boot and JPA / Hibernate in practice.
- Implement basic CRUD operations (CREATE, READ, UPDATE, DELETE).
- Structure Logical Layers: resource, service, repository, etc.
- A REST API (also called a RESTful API or RESTful web API) is an application programming interface (API) that conforms to the design principles of the representational state transfer (REST) architectural style. REST APIs provide a flexible, lightweight way to integrate applications and to connect components in microservices architectures.
- REST APIs communicate through HTTP requests to perform standard database functions like creating, reading, updating and deleting records (also known as CRUD) within a resource.
- Java Persistence API (JPA) is the Java EE platform standard specification (
javax.persistence
package) for object-relational mapping and data persistence. - To work with JPA it is necessary to include an API implementation in the project (Hibernate).
-
Java Spring Boot (Spring Boot) is a tool that makes developing web applications and microservices with the Spring Framework easier and faster through three key features:
-
Autoconfiguration.
-
An opinionated approach to configuration.
-
The ability to create standalone applications.
-
- H2 is a relational database management system written in Java. It can be embedded in Java applications or run in client-server mode.
- The resource layer is only responsible for the interface, it defines the URLs for the endpoints and secures the application. In addition, it forwards requests to the underlying layer, the service layer.
- The service layer contains the core logic of the system. All algorithms and data processing are performed in this layer. Data required processes are queried from the layer below, the data access layer.
- The data access layer has four tasks: creating, reading, updating and deleting data (CRUD). To hide and unify access to the data sources from service layer, this layer implements a interface for the data from all data sources.
- Entity is a lightweight persistence domain object.
- Config Package indicates @Bean methods and processed by the Java container to generate bean definitions and service requests for those beans at runtime.
- Java 17
- Spring Boot 3.0.0