title: Delete hibernate entity which is referenced by @ManyToMany in other entity
body: <p>I want to delete Recipe (using spring data DAO) but I got SQL exception: <code>org.postgresql.util.PSQLException: ERROR: update or delete on table "recipe" violates foreign key constraint "fkacys689tmdmfggtf4thdoc83k" on table "favourite_recipes"
    Detail: Key (id)=(76823) is still referenced from table "favourite_recipes".</code></p>
  
  <p>My entities:</p>
  
  <pre><code>@Entity
  public class Account {
  
    @ManyToMany(fetch = FetchType.LAZY)
    @JoinTable(name = "favourite_recipes",
      joinColumns = @JoinColumn(name = "account_id"),
      inverseJoinColumns = @JoinColumn(name = "recipe_id"))
    private Set&lt;Recipe&gt; favouriteRecipes = new HashSet&lt;&gt;(0);
  
    ...
  }
  
  
  @Entity
  public class Recipe {
    ...
  }
  </code></pre>
  
  <p>How to remove recipe instance?</p>