title: Hibernate java ORA-02292: integrity constraint violated - child record found Course with Review
body: <p>When I want to delete any course with respect to its id, review related with this course can also be deleted. But there is an insue appeared on the console.</p>
  
  <p>Hibernate java ORA-02292: integrity constraint violated - child record found</p>
  
  <p>Course.java</p>
  
  <pre><code>@OneToMany(fetch=FetchType.LAZY, cascade=CascadeType.ALL,mappedBy="course")
      private Set&lt;Review&gt; reviews = new HashSet&lt;Review&gt;();
  </code></pre>
  
  <p>Review.java</p>
  
  <pre><code>@ManyToOne(fetch=FetchType.LAZY,cascade=CascadeType.ALL)
      @JoinColumn(name = "COURSE_ID", nullable = false)
      private Course course;
  </code></pre>
  
  <p>I tried to use <code>orphanRemoval=true</code> but nothing changed.</p>
  
  <p>How can I fix the issue?</p>