I believe the PersonRepository should be annotated with @NoRepositoryBean.
In my application I've done it this way:
Parent:
@NoRepositoryBean public interface UserRepository<T> extends JpaRepository<T, Long> { } Child:
@Repository public interface EmployeeRepository extends UserRepository<Employee> { }Read full article from Spring Data JPA. Repositories Inheritance, throws BeanCreationException, NullPointerException - Stack Overflow
No comments:
Post a Comment