Interface ColumnAliasExtractor

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@SPI({USE,IMPLEMENT,SUPPLY}) @FunctionalInterface public interface ColumnAliasExtractor

Extracts the unique result-column alias used while auto-discovering native SQL query results.

Use COLUMN_LABEL_EXTRACTOR for JDBC drivers which correctly report the projected alias through ResultSetMetaData.getColumnLabel(int). Use COLUMN_NAME_EXTRACTOR only for drivers which require ResultSetMetaData.getColumnName(int) instead. The supplied position is the one-based JDBC column position and must be forwarded unchanged.

Implementations must propagate SQLException so Hibernate can apply its normal JDBC exception handling.

Since:
8.0
See Also: