All in one java file !
Using Lombok, Jpa/Hibernate, Spring-Data , Spring Rest-Controler, Spring Data-Rest
All in one java file :
1 . Creation of 2 entities : Students and Laboratories with Lombok
(relationship oneToMany between Laboratories and Students)
-
Mapping Object/Relational : with Jpa/Hibernate
-
Creation of interface Repositories on Students and Laboratories : with Spring-Data
-
Creation of WebServices Rest on Students and Laboratories : with Spring Rest-Controler
-
Creation of WebServices Rest on Students and Laboratories : with Spring-Data-Rest
Creation of a projection on Students -
Fill the database using studentRepositorie and laboratoryRepository
Rest-controler :
http://localhost:8080/api/students
http://localhost:8080/api/laboratories
SpringDataRest :
http://localhost:8080/laboratories
http://localhost:8080/students
http://localhost:8080/students/1?projection=p1




