darrachequesne / spring-data-jpa-datatables

Spring Data JPA extension to work with the great jQuery plugin DataTables (https://datatables.net/)
Apache License 2.0
440 stars 174 forks source link

JPARepository not working after creating DatatableRepository #122

Closed kapil-signity closed 3 years ago

kapil-signity commented 4 years ago

Cannot Autowire normal JPA Repository of entity if we create DatatableRepository of same entity.? Why? Then how how we create JPARepository of the same entity along with DatatableRepository?

darrachequesne commented 4 years ago

Hi!

The DataTablesRepositoryImpl class extends the SimpleJpaRepository class (which itself implements the JpaRepository interface):

https://github.com/darrachequesne/spring-data-jpa-datatables/blob/ea534b9325140b5739366f4d1d155ac2746030c7/src/main/java/org/springframework/data/jpa/datatables/repository/DataTablesRepositoryImpl.java#L16-L17

So you should have access to all the methods. Or am I missing something?