CPA
CPA

Reputation: 3063

Generate automatically Spring Data Repositories from JPA entities

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

Upvotes: 10

Views: 19525

Answers (2)

Marco Sulla
Marco Sulla

Reputation: 15930

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.

Upvotes: 0

Ihor Dobrovolskyi
Ihor Dobrovolskyi

Reputation: 1241

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

Upvotes: 5

Related Questions