Skip to content
This repository has been archived by the owner on Jun 18, 2020. It is now read-only.

Commit

Permalink
DATAJDBC-6 renamed cols parameter to projection
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Risberg committed Apr 21, 2011
1 parent b18c3a9 commit 0ca0c04
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -88,8 +88,8 @@ public SQLQuery newSqlQuery() {
return new SQLQueryImpl(this.dialect);
}

public <T> T queryForObject(final SQLQuery sqlQuery, final RowMapper<T> rowMapper, final Expression<?>... cols) {
List<T> results = query(sqlQuery, rowMapper, cols);
public <T> T queryForObject(final SQLQuery sqlQuery, final RowMapper<T> rowMapper, final Expression<?>... projection) {
List<T> results = query(sqlQuery, rowMapper, projection);
if (results.size() == 0) {
return null;
}
Expand Down

0 comments on commit 0ca0c04

Please sign in to comment.