Skip to content

关于springboot2.1集成entitymanager的问题 #1

@xiaobu1994

Description

@xiaobu1994

protected final JpaRepositoryImplementation getTargetRepository(RepositoryInformation information) {
JpaRepositoryImplementation repository = this.getTargetRepository(information, this.entityManager);
repository.setRepositoryMethodMetadata(this.crudMethodMetadataPostProcessor.getCrudMethodMetadata());
return repository;
}

protected JpaRepositoryImplementation<?, ?> getTargetRepository(RepositoryInformation information, EntityManager entityManager) {
    JpaEntityInformation<?, Serializable> entityInformation = this.getEntityInformation(information.getDomainType());
    Object repository = this.getTargetRepositoryViaReflection(information, new Object[]{entityInformation, entityManager});
    Assert.isInstanceOf(JpaRepositoryImplementation.class, repository);
    return (JpaRepositoryImplementation)repository;
}

这个版本是final了 该如何处理

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions