I am looking into Spring Data JPA. Consider the below example where I will get all the crud and finder functionality working by default and if I want to customize a finder t
I extends the SimpleJpaRepository:
public class ExtendedRepositoryImpl extends SimpleJpaRepository
implements ExtendedRepository {
private final JpaEntityInformation entityInformation;
private final EntityManager em;
public ExtendedRepositoryImpl(final JpaEntityInformation entityInformation,
final EntityManager entityManager) {
super(entityInformation, entityManager);
this.entityInformation = entityInformation;
this.em = entityManager;
}
}
and adds this class to @EnableJpaRepositoryries repositoryBaseClass.