| Hibernate 4.3 uses the same mechanism you illustrated with Hibernate 5, Column#getAlias(Dialect). I do want to briefly mention that this will likely be a non-issue starting with Hibernate 6 largely in part because we no longer require the generation of aliases in SQL since Hibernate no longer will use aliases to read from the JDBC result-set but rather does so based on position. This is a performance optimization we've been working on for the next major release. |