According to Javadoc, getColumnLabel is the method that is meant to respect the 'as foo' construct we rely on.

This commit is contained in:
Par Winzell
2012-07-03 23:38:35 +00:00
parent f7d7c586c0
commit 42e8d6e75e
@@ -616,7 +616,7 @@ public class DepotMarshaller<T extends PersistentRecord> implements QueryMarshal
Set<String> fields = Sets.newHashSet();
ResultSetMetaData metadata = rs.getMetaData();
for (int ii = 1; ii <= metadata.getColumnCount(); ii ++) {
fields.add(metadata.getColumnName(ii));
fields.add(metadata.getColumnLabel(ii));
}
// then create and populate the persistent object