Skip to content

Commit

Permalink
#87 - Polishing.
Browse files Browse the repository at this point in the history
Qualify field access with this.
  • Loading branch information
mp911de committed May 22, 2019
1 parent d4a06a7 commit 67c71fd
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -451,22 +451,22 @@ private static class RowParameterValueProvider implements ParameterValueProvider
@Nullable
public <T> T getParameterValue(Parameter<T, RelationalPersistentProperty> parameter) {

RelationalPersistentProperty property = entity.getRequiredPersistentProperty(parameter.getName());
String column = prefix + property.getColumnName();
RelationalPersistentProperty property = this.entity.getRequiredPersistentProperty(parameter.getName());
String column = this.prefix + property.getColumnName();

try {

if (metadata != null && !metadata.getColumnNames().contains(column)) {
if (this.metadata != null && !this.metadata.getColumnNames().contains(column)) {
return null;
}

Object value = resultSet.get(column);
Object value = this.resultSet.get(column);

if (value == null) {
return null;
}

return converter.getConversionService().convert(value, parameter.getType().getType());
return this.converter.getConversionService().convert(value, parameter.getType().getType());
} catch (Exception o_O) {
throw new MappingException(String.format("Couldn't read column %s from Row.", column), o_O);
}
Expand Down

0 comments on commit 67c71fd

Please sign in to comment.