Browse Source

DATAJDBC-175 - Polishing.

Code formatting.
pull/48/head
Jens Schauder 8 years ago
parent
commit
ac4da66d99
  1. 9
      src/main/java/org/springframework/data/jdbc/repository/support/JdbcQueryLookupStrategy.java

9
src/main/java/org/springframework/data/jdbc/repository/support/JdbcQueryLookupStrategy.java

@ -58,8 +58,13 @@ class JdbcQueryLookupStrategy implements QueryLookupStrategy {
Class<?> returnedObjectType = queryMethod.getReturnedObjectType(); Class<?> returnedObjectType = queryMethod.getReturnedObjectType();
RowMapper<?> rowMapper = context.getSimpleTypeHolder().isSimpleType(returnedObjectType) RowMapper<?> rowMapper = context.getSimpleTypeHolder().isSimpleType(returnedObjectType)
? SingleColumnRowMapper.newInstance(returnedObjectType, conversionService) ? SingleColumnRowMapper.newInstance(returnedObjectType, conversionService)
: new EntityRowMapper<>(context.getRequiredPersistentEntity(returnedObjectType), conversionService, : new EntityRowMapper<>( //
context, accessStrategy); context.getRequiredPersistentEntity(returnedObjectType), //
conversionService, //
context, //
accessStrategy //
);
return new JdbcRepositoryQuery(queryMethod, context, rowMapper); return new JdbcRepositoryQuery(queryMethod, context, rowMapper);
} }

Loading…
Cancel
Save