Reputation: 1621
I've got task to create application, which have rest services to attend on CRUD controllers with database.
So: I need to create rest services to bring on spring methods which execute methods from repository (JpaRepository - Spring Data), which create, read, update and delete on invented entity.
The code which "download" data should be in few versions:
And basicly the problem is that I dont understand the question...
Like you can notice here:github I created this using 3rd point (JpaRepository), but I really don't understand how can I create CRUD queries automaticly without using JpaRepository. So my questions are:
Upvotes: 2
Views: 1180
Reputation: 156
JpaRepository let you 3 choices to manipulate data :
So :
In V1 and V2 you logic will be mainly in the JPA implementation. In V3, all your logic will be on the service.
(If you want to know how JpaRepository works : How are Spring Data repositories actually implemented? )
Upvotes: 2