HHH-13496 Review string appending styles
This commit is contained in:
parent
9196a4e01e
commit
cdcd6bfe76
|
@ -162,7 +162,7 @@ public class PersistentAttributesEnhancer extends EnhancerImpl {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
boolean declared = persistentField.getDeclaringClass().equals( managedCtClass );
|
boolean declared = persistentField.getDeclaringClass().equals( managedCtClass );
|
||||||
String declaredReadFragment = "this." + fieldName + "";
|
String declaredReadFragment = "this." + fieldName;
|
||||||
String superReadFragment = "super." + readerName + "()";
|
String superReadFragment = "super." + readerName + "()";
|
||||||
|
|
||||||
if ( !declared ) {
|
if ( !declared ) {
|
||||||
|
|
|
@ -80,7 +80,7 @@ public class CopyIdentifierComponentSecondPass implements SecondPass {
|
||||||
if ( columnByReferencedName.isEmpty() ) {
|
if ( columnByReferencedName.isEmpty() ) {
|
||||||
isExplicitReference = false;
|
isExplicitReference = false;
|
||||||
for ( Ejb3JoinColumn joinColumn : joinColumns ) {
|
for ( Ejb3JoinColumn joinColumn : joinColumns ) {
|
||||||
columnByReferencedName.put( "" + index.get(), joinColumn );
|
columnByReferencedName.put( String.valueOf( index.get() ), joinColumn );
|
||||||
index.getAndIncrement();
|
index.getAndIncrement();
|
||||||
}
|
}
|
||||||
index.set( 0 );
|
index.set( 0 );
|
||||||
|
@ -184,7 +184,7 @@ public class CopyIdentifierComponentSecondPass implements SecondPass {
|
||||||
joinColumn = columnByReferencedName.get( logicalColumnName.toLowerCase(Locale.ROOT ) );
|
joinColumn = columnByReferencedName.get( logicalColumnName.toLowerCase(Locale.ROOT ) );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
joinColumn = columnByReferencedName.get( "" + index.get() );
|
joinColumn = columnByReferencedName.get( String.valueOf( index.get() ) );
|
||||||
index.getAndIncrement();
|
index.getAndIncrement();
|
||||||
}
|
}
|
||||||
if ( joinColumn == null && ! joinColumns[0].isNameDeferred() ) {
|
if ( joinColumn == null && ! joinColumns[0].isNameDeferred() ) {
|
||||||
|
|
Loading…
Reference in New Issue