Generate automatically Spring Data Repositories from JPA entities

18.7k 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 answers

2
Ihor Dobrovolskyi 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
Marco Sulla 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.