What is significant of cascading in Hibernate? : <p>Why we are using cascading in Java?? What is its importance.
Here i am using for save and update</p>

<pre><code>Stock stock = new Stock();
StockDailyRecord stockDailyRecords = new StockDailyRecord();
//set the stock and stockDailyRecords  data

stockDailyRecords.setStock(stock);        
stock.getStockDailyRecords().add(stockDailyRecords);

session.save(stock);
session.save(stockDailyRecords);
</code></pre>

<p>Is there any alternate way for cascading.?</p>
