title: In a "One to Many" relation.. i want to delete one degree from a CV I get a "Transaction rolled back " exception
body: <p>In a "One to Many" relation between these classes (CV and degrees).
  my scenario: a CV has 3 degrees..when i want to delete one degree from a CV I get a "Transaction rolled back " exception..</p>
  
  <p>Caused by: java.sql.BatchUpdateException: Cannot delete or update a parent row: a foreign key constraint fails (<code>consoftcv/cv_degrees</code>, CONSTRAINT <code>FKA278F3B18D2CAE7</code> FOREIGN KEY (<code>degrees_DegreeId</code>) REFERENCES <code>degrees</code> (<code>DegreeId</code>))</p>
  
  <pre><code>public void delete(Degrees e) 
  { 
     e = em.find(Degrees.class, e.getDegreeId()); 
     if (e != null) 
       em.remove(e); 
  } 
  </code></pre>
  
  <p>I'm using  hibernate,EJB..is there an annotation??
  thx</p>