Best way of handling entities inheritance in Spring Data JPA
I used the solution also described in this post from Netgloo’s blog. The idea is to create a generic repository class like the following: @NoRepositoryBean public interface ABaseRepository<T extends A> extends CrudRepository<T, Long> { // All methods in this repository will be available in the ARepository, // in the BRepository and in the CRepository. // … Read more