HHH-17707 Improve ColumnReference.toString() to remove repeated qualifier

`getExpressionText()` already contains `qualifier`
This commit is contained in:
Yanming Zhou 2024-02-04 15:41:48 +08:00 committed by Christian Beikov
parent 98907e1ad4
commit 747eaa3f2e
1 changed files with 1 additions and 9 deletions

View File

@ -30,6 +30,7 @@ import static org.hibernate.sql.Template.TEMPLATE;
*
* @author Steve Ebersole
* @author Nathan Xu
* @author Yanming Zhou
*/
public class ColumnReference implements Expression, Assignable {
private final String qualifier;
@ -224,15 +225,6 @@ public class ColumnReference implements Expression, Assignable {
@Override
public String toString() {
if ( StringHelper.isNotEmpty( qualifier ) ) {
return String.format(
Locale.ROOT,
"%s(%s.%s)",
getClass().getSimpleName(),
qualifier,
getExpressionText()
);
}
return String.format(
Locale.ROOT,
"%s(%s)",