Nguyên Phạm
Nguyên Phạm

Reputation: 43

How to generate CRUD repository class from entity class spring boot

I am coding a Spring boot project. I want to generate repository classes which extends CrudRepository <T, ID>. I have generated entity from tables by JPA tool of Eclipse. Now I have all the entities I need to connect to the MySql Database. Creating repository classes is boring and time consuming because it does not require high coding skills and programming skills. I want to find a quick way to generate Repository classes (as mentioned above) with any possible tool. Looking forward to your help! Thank you very much!

enter image description here

enter image description here

Upvotes: 1

Views: 3792

Answers (1)

Player_Neo
Player_Neo

Reputation: 1675

The tool you are looking for (actually a run time library), it is the only tool I came across so far Spring Data Generator https://github.com/cmeza20/spring-data-generator

It generates the interfaces automatically, but you need to write some configurations via annotations.

Upvotes: 5

Related Questions