Generate automatically Spring Data Repositories from JPA entities

18.8k Views Asked by At

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)?

2

There are 2 best solutions below

2
On BEST ANSWER

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

0
On

Wel, it's not for JPA, but I created a tool, EWA, for creating Repositories, Services and Models for Spring Boot + sql2o, a simple db driver, the fastest after pure JDBC.