HHH-8548 - HHH-3047 causes regressions

This commit is contained in:
Steve Ebersole 2013-10-02 13:40:31 -05:00
parent 1755f00260
commit 85bb1e1146
2 changed files with 7 additions and 1 deletions

View File

@ -1892,6 +1892,11 @@ public String transformSelectString(String select) {
/** /**
* What is the maximum length Hibernate can use for generated aliases? * What is the maximum length Hibernate can use for generated aliases?
* <p/>
* The maximum here should account for the fact that Hibernate often needs to append "uniqueing" information
* to the end of generated aliases. That "uniqueing" information will be added to the end of a identifier
* generated to the length specified here; so be sure to leave some room (generally speaking 5 positions will
* suffice).
* *
* @return The maximum length. * @return The maximum length.
*/ */

View File

@ -609,6 +609,7 @@ public String getQueryHintString(String sql, List<String> hints) {
@Override @Override
public int getMaxAliasLength() { public int getMaxAliasLength() {
return 30; // Oracle's max identifier length is 30, but Hibernate needs to add "uniqueing info" so we account for that,
return 20;
} }
} }