org.hibernate.AnnotationException

Foreign key circularity dependency involving the following tables: D, C, A

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web8

  • via Unknown by Sven Woltmann,
  • via Unknown by Sven Woltmann,
  • Stack trace

    • org.hibernate.AnnotationException: Foreign key circularity dependency involving the following tables: D, C, A at org.hibernate.cfg.AnnotationConfiguration.processFkSecondPassInOrder(AnnotationConfiguration.java:470) at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:304) at org.hibernate.cfg.Configuration.generateDropSchemaScript(Configuration.java:762) at org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:93) at org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:61) at test.DoTest.initTest(DoTest.java:22)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.