HHH-10401 - Fix Missing table names on foreign key circularity error message

This commit is contained in:
Andrea Boriero 2016-01-14 09:55:37 +00:00
parent ebab48d6ad
commit 653cf910fa
1 changed files with 1 additions and 2 deletions

View File

@ -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 ) ) {