HHH-10401 - Fix Missing table names on foreign key circularity error message
This commit is contained in:
parent
ebab48d6ad
commit
653cf910fa
|
@ -1727,8 +1727,7 @@ public class InFlightMetadataCollectorImpl implements InFlightMetadataCollector
|
|||
for ( FkSecondPass sp : dependencies ) {
|
||||
String dependentTable = sp.getValue().getTable().getQualifiedTableName().render();
|
||||
if ( dependentTable.compareTo( startTable ) == 0 ) {
|
||||
String sb = "Foreign key circularity dependency involving the following tables: ";
|
||||
throw new AnnotationException( sb );
|
||||
throw new AnnotationException( "Foreign key circularity dependency involving the following tables: " + startTable + ", " + dependentTable );
|
||||
}
|
||||
buildRecursiveOrderedFkSecondPasses( orderedFkSecondPasses, isADependencyOf, startTable, dependentTable );
|
||||
if ( !orderedFkSecondPasses.contains( sp ) ) {
|
||||
|
|
Loading…
Reference in New Issue