 <p>alter you table so that it is setup as DELETE CASCADE.</p> <p>In hibernate this would be like</p> <pre><code>&lt;set name="stockDailyRecords" cascade="delete" table="stock_daily_record" ...&gt; &lt;key&gt; &lt;column name="STOCK_ID" not-null="true" /&gt; &lt;/key&gt; &lt;one-to-many class="com.mkyong.common.StockDailyRecord" /&gt; &lt;/set&gt; </code></pre> <p>see this <a href="http://www.mkyong.com/hibernate/hibernate-cascade-example-save-update-delete-and-delete-orphan/" rel="nofollow">link</a></p>