commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Arthur (Commented) (JIRA)" <>
Subject [jira] [Commented] (DBUTILS-24) [dbutils] Modify BasicRowProcessor to use the column label
Date Mon, 13 Feb 2012 17:35:03 GMT


Bob Arthur commented on DBUTILS-24:

The MySQL documentation -
- states that returning aliases from getColumnName() is not JDBC-compliant, so as of v5.1
of their driver, returns table names, with aliases being returned by getColumnLabel().
> [dbutils] Modify BasicRowProcessor to use the column label
> ----------------------------------------------------------
>                 Key: DBUTILS-24
>                 URL:
>             Project: Commons DbUtils
>          Issue Type: Improvement
>         Environment: Operating System: other
> Platform: Other
>            Reporter: gene
>            Priority: Minor
> BasicRowProcessor.mapColumnsToProperties currently uses 'getColumnName' to 
> determine what property to set on the bean. It would be more flexible if it 
> used 'getColumnLabel'. This would allow the developer to specify the property 
> name as an alias to a column in the sql query.
> For example 'select last_name lastname, first_name firstname from employee'. 
> Note that 'getColumnLabel' will defaults to the column name if no alias is 
> specified in the query.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message