@Override
    @Nullable
    public Locale getValue(ResultSet rs, int startIndex) throws SQLException {
        String val = rs.getString(startIndex);
        return val != null ? toLocale(val) : null;
    }
{@code LocaleType} maps Locale to String on the JDBC level

@author tiwe
querydsl-sql/src/main/java/com/querydsl/sql/types/LocaleType.java