title: Cannot delete or update a parent row in bi-directionnelle relationship
body: <p>I have three tables :</p>
  
  <pre><code>CREATE TABLE IF NOT EXISTS `DB`.`global_history` (
    `ID` INT(11) AUTO_INCREMENT,
    `ID_HISTORY` INT(11) NULL,
  
    PRIMARY KEY (`ID`),
  
    CONSTRAINT `FK_HISTORY_GLOBAL_HISTORY`
      FOREIGN KEY (`ID_HISTORY`)
      REFERENCES `DB`.`history` (`ID`)
      ON DELETE NO ACTION
      ON UPDATE NO ACTION);
  </code></pre>
  
  <p>Second table :</p>
  
  <pre><code>CREATE TABLE IF NOT EXISTS `DB`.`history` (
    `ID` INT(11) AUTO_INCREMENT,
    `TIMESTAMP` DATETIME NOT NULL,
    PRIMARY KEY (`ID`));*
  </code></pre>
  
  <p>third table :</p>
  
  <pre><code>CREATE TABLE IF NOT EXISTS `DB`.`audit` (
    `ID` INT(11) AUTO_INCREMENT,
    `ID_HISTORY` INT(11) NULL,
  
    PRIMARY KEY (`ID`),
  
    CONSTRAINT `FK_HISTORY_AUDIT`
      FOREIGN KEY (`ID_HISTORY`)
      REFERENCES `DB`.`history` (`ID`)
      ON DELETE NO ACTION
      ON UPDATE NO ACTION);
  </code></pre>
  
  <p><strong>And these are my model classes :</strong></p>
  
  <p><strong><em>Global history :</em></strong></p>
  
  <pre><code>@ManyToOne
  @JoinColumn(name = "ID_HISTORY", nullable = true)
  private History history;
  </code></pre>
  
  <p><strong><em>History :</em></strong></p>
  
  <pre><code>    @OneToMany(mappedBy = "history", fetch = FetchType.EAGER, cascade = { CascadeType.ALL })
  @Fetch(value = FetchMode.SUBSELECT)
  @Cascade({ org.hibernate.annotations.CascadeType.SAVE_UPDATE })
  private List&lt;GloabalHistory&gt; globalHistories;
  
  @ManyToOne
  @JoinColumn(name = "ID_AUDIT", nullable = true)
  private Audit audit;
  </code></pre>
  
  <p><strong><em>Audit:</em></strong></p>
  
  <pre><code>    @OneToMany(mappedBy = "audit", fetch = FetchType.EAGER, cascade = { CascadeType.ALL })
  @Fetch(value = FetchMode.SUBSELECT)
  @Cascade({ org.hibernate.annotations.CascadeType.SAVE_UPDATE })
  private List&lt;History&gt; histories;
  </code></pre>
  
  <p>but when I try to update a row in History (Second table) I get this error :</p>
  
  <blockquote>
    <p>--> Cannot delete or update a parent row : a foreign key constraint fails</p>
  </blockquote>