title: JPA -Table column references as foreign key to two different tables
body: <p>Hello dear developers,</p>
  
  <p>my current situation: I'm using JPA 2.1 and in one table I have a column which references in a foreign key relationship to two different tables.</p>
  
  <p>How can this be described in JPA?</p>
  
  <pre><code>Table Book 
    taxRateId (manyToOne) (GermanTax/AustrianTax)
    countryType
  
  Table GermanTax
    taxRateId (oneToMany Books)
  
  Table AustrianTax
    taxRateId (oneToMany Books)
  
  
  CONSTRAINT germanTax FOREIGN KEY (tax_rate_id) REFERENCES german_tax (id)
  
  CONSTRAINT austrianTax FOREIGN KEY (tax_rate_id) REFERENCES austrian_tax (id),
  </code></pre>