mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-18 09:05:21 +00:00
HHH-8548 - HHH-3047 causes regressions
This commit is contained in:
parent
1755f00260
commit
85bb1e1146
@ -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.
|
||||||
*/
|
*/
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user