fix ugly toString()s

This commit is contained in:
Gavin King 2022-10-28 19:25:03 +02:00
parent 070f7e5d3a
commit d9392d6601
5 changed files with 5 additions and 5 deletions

View File

@ -1020,7 +1020,7 @@ public class AnnotatedColumn {
if ( isNotEmpty( formulaString ) ) {
string.append( "formula='" ).append( formulaString ).append( "'" );
}
string.append( "'" );
string.append( ")" );
return string.toString();
}
}

View File

@ -887,7 +887,7 @@ public class AnnotatedJoinColumn extends AnnotatedColumn {
if ( isNotEmpty( referencedColumn ) ) {
string.append( "referencedColumn='" ).append( referencedColumn ).append( "'" );
}
string.append( "'" );
string.append( ")" );
return string.toString();
}
}

View File

@ -423,6 +423,6 @@ public class ClassPropertyHolder extends AbstractPropertyHolder {
@Override
public String toString() {
return super.toString() + "(" + getEntityName() + ")";
return getClass().getSimpleName() + "(" + getEntityName() + ")";
}
}

View File

@ -320,7 +320,7 @@ public class CollectionPropertyHolder extends AbstractPropertyHolder {
@Override
public String toString() {
return super.toString() + "(" + collection.getRole() + ")";
return getClass().getSimpleName() + "(" + collection.getRole() + ")";
}
boolean prepared;

View File

@ -375,6 +375,6 @@ public class ComponentPropertyHolder extends AbstractPropertyHolder {
@Override
public String toString() {
return super.toString() + "(" + parent.normalizeCompositePathForLogging( embeddedAttributeName ) + ")";
return getClass().getSimpleName() + "(" + parent.normalizeCompositePathForLogging( embeddedAttributeName ) + ")";
}
}