Uploaded image for project: 'Hibernate ORM'
  1. HHH-10401

Missing table names on foreign key circularity error message

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 5.0.6
    • Fix Version/s: 5.1.0, 5.0.8
    • Component/s: hibernate-core
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      Description

      The org.hibernate.boot.internal.InFlightMetadataCollectorImpl#buildRecursiveOrderedFkSecondPasses throws an AnnotationException with the message "Foreign key circularity dependency involving the following tables: " but never adds the table names to the exception message:

      			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 );
      			}
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: