use of org.springframework.data.jdbc.core.EntityRowMapper in project spring-data-jdbc by spring-projects.
the class JdbcQueryLookupStrategy method determineDefaultRowMapper.
private RowMapper<?> determineDefaultRowMapper(JdbcQueryMethod queryMethod) {
Class<?> domainType = queryMethod.getReturnedObjectType();
RowMapper typeMappedRowMapper = rowMapperMap.rowMapperFor(domainType);
return //
typeMappedRowMapper == null ? new //
EntityRowMapper<>(//
context.getRequiredPersistentEntity(domainType), //
context, //
accessStrategy) : typeMappedRowMapper;
}
Aggregations