
Controller & Service :
- in this there will be just the GetMapping or any PutMapping etc.
- The logic for that will be in the service class and the model of the entity should be in another class
- then we can create a service object in the controller class to get the functionality and call that in the GetMapping

- Spring boot uses Data JPA for connecting to data bases we just have to specify the configuration in application.properties under resources package


Hibernate
- Hibernate is just like the Sqlalchemy ORM to manipulate the database using java without implementing SQL queries directly
Data Access Layer (Repository)
- Look in the diagram for data access layer
- With hibernate and JPA we created the database layer, with controller the api layer, and with the service file the service layer
- This is the Interface class, which extends the JPA repository and we pass the Student class and the ID type we created in the student class
- This is Called the Repository