为所有的repositories添加自定义行为
extends SimpleJpaRepository<T, ID> implements MyRepository<T, ID> {
private final EntityManager entityManager;
EntityManager entityManager) {
super(entityInformation, entityManager);
// Keep the EntityManager around to used from the newly introduced methods.
public void sharedCustomMethod(ID id) {
// implementation goes here
}