title: hibernate error when using single table inheritance
body: <p>If I specify </p>
  
  <pre><code>@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
  @Table(name = "tablename")
  </code></pre>
  
  <p>for the superclass, and</p>
  
  <pre><code>@Table(name = "tablename")
  </code></pre>
  
  <p>for the subclasses, hibernate throws an exception during application startup (only displaying final cause):</p>
  
  <pre><code>Caused by: org.hibernate.AnnotationException: Foreign key circularity dependency involving the following tables: 
  at org.hibernate.cfg.Configuration.buildRecursiveOrderedFkSecondPasses(Configuration.java:1570)
  at org.hibernate.cfg.Configuration.processFkSecondPassInOrder(Configuration.java:1511)
  at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1420)
  at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1844)
  at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:850)
  ... 98 more
  </code></pre>
  
  <p>As you can see in the above example, it does not say which tables are involved in the dependency circularity.</p>
  
  <p>If anyone has any suggestions what may be the problem I would be very happy.</p>