From 747eaa3f2eb84edf04238f5c846bd9157e716b9a Mon Sep 17 00:00:00 2001 From: Yanming Zhou Date: Sun, 4 Feb 2024 15:41:48 +0800 Subject: [PATCH] HHH-17707 Improve ColumnReference.toString() to remove repeated qualifier `getExpressionText()` already contains `qualifier` --- .../sql/ast/tree/expression/ColumnReference.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/sql/ast/tree/expression/ColumnReference.java b/hibernate-core/src/main/java/org/hibernate/sql/ast/tree/expression/ColumnReference.java index 98f6e177ff..6fd402182a 100644 --- a/hibernate-core/src/main/java/org/hibernate/sql/ast/tree/expression/ColumnReference.java +++ b/hibernate-core/src/main/java/org/hibernate/sql/ast/tree/expression/ColumnReference.java @@ -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)",