public class CustomJpaRepositoryFactoryBean<T extends JpaRepository<S, ID>, S, ID extends Serializable> extends JpaRepositoryFactoryBean<T, S, ID> {
@OverRide
@SuppressWarnings("unchecked")
protected Object getTargetRepository(RepositoryInformation information) {
return new SoftDeletesRepositoryImpl<T, ID>((Class) information.getDomainType(), entityManager);
}
getTargetRepository(org.springframework.data.repository.core.RepositoryInformation) in CustomJpaRepositoryFactoryBean cannot override getTargetRepository(org.springframework.data.repository.core.RepositoryInformation) in org.springframework.data.jpa.repository.support.JpaRepositoryFactory
overridden method is final
How can it work at all?