title: JPA 2.1 @ForeignKey in inheritance class
body: <p>I'm migrating to JPA 2.1 and I would like to replace <code>@org.hibernate.annotations.ForeignKey</code> to something in inheritance class.</p>
  
  <p>In fields, ok:</p>
  
  <pre><code>@ManyToOne
  @JoinColumn(name = "any_columm_field_id",
       foreignKey = @javax.persistence.ForeignKey(name = "any_name_field_fk"))
  </code></pre>
  
  <p><strong>But in inheritance class, how to do it?</strong></p>
  
  <p>Example code:</p>
  
  <p>Super class</p>
  
  <pre><code>@Entity
  @Inheritance(strategy = InheritanceType.JOINED)
  @Table(name = "ANY_SUPER_TABLE_NAME")
  public abstract class AnySuperClass { }
  </code></pre>
  
  <p>Specific class</p>
  
  <pre><code>@Entity
  @Table(name = "ANY_SPECIFIC_TABLE_NAME")
  // TODO Replace to JPA 2.1
  // @org.hibernate.annotations.ForeignKey(name = "any_specific_any_super_fk")
  public class AnySpecificClass extends AnySuperClass { }
  </code></pre>
  
  <p>Any help?</p>
  
  <p>Thank you for your time.</p>