use of org.springframework.data.jdbc.core.JdbcEntityTemplate in project spring-data-jdbc by spring-projects.
the class JdbcRepositoryFactory method getTargetRepository.
@SuppressWarnings("unchecked")
@Override
protected Object getTargetRepository(RepositoryInformation repositoryInformation) {
JdbcPersistentEntityInformation persistentEntityInformation = context.getRequiredPersistentEntityInformation(repositoryInformation.getDomainType());
JdbcEntityTemplate template = new JdbcEntityTemplate(publisher, context, accessStrategy);
return new SimpleJdbcRepository<>(template, persistentEntityInformation);
}
Aggregations