mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-09 04:34:49 +00:00
HHH-14720 : Aliases generated for mixed-case column names that end in a number are not all lower-case
This commit is contained in:
parent
c4ff6c19ac
commit
6d16d6d32f
@ -117,8 +117,8 @@ public String getAlias(Dialect dialect) {
|
|||||||
if ( lastLetter == -1 ) {
|
if ( lastLetter == -1 ) {
|
||||||
alias = "column";
|
alias = "column";
|
||||||
}
|
}
|
||||||
else if ( name.length() > lastLetter + 1 ) {
|
else if ( alias.length() > lastLetter + 1 ) {
|
||||||
alias = name.substring( 0, lastLetter + 1 );
|
alias = alias.substring( 0, lastLetter + 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean useRawName = name.length() + suffix.length() <= dialect.getMaxAliasLength()
|
boolean useRawName = name.length() + suffix.length() <= dialect.getMaxAliasLength()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user