Generate automatically Spring Data Repositories from JPA entities

CPA picture CPA · Dec 21, 2016 · Viewed 14.5k times · Source

I have a lot of JPA entities automatically created from a relational database schema.

Is there any way to generate also there corresponding Spring Data Repositories (Repository interfaces)?

Answer

Ihor Dobrovolskyi picture Ihor Dobrovolskyi · Dec 21, 2016

You can use Spring Roo to create models and repositories by one command. http://docs.spring.io/spring-roo/reference/html/intro.html