title: Error in hibernate constraint
body: <p>In my project i m using using hibernate and oracle as DB.</p>
  
  <p>I am having two tables with foreign key relationship.</p>
  
  <p>In hibernate I m have one-to-many relationship. </p>
  
  <p>my one-to-many code</p>
  
  <p>set name="classname" cascade="all,all-delete-orphan</p>
  
  <p>one-to-many ..... on-delete="cascade"</p>
  
  <p>set</p>
  
  <p>But whenever i detele i am getting constraint violation error...
  ora:222 error cannot delete it has child table
  I have cascade="all" but y still the error comes...</p>
  
  <p>Same error while inserting too. I am having primarykey as ID attribute which is sequence.
  So in foreignkey ID attribute its not inserting and getting null cannot be inserted error ..
  Have any one experienced these errors ?</p>