Amit,
Assume below code is in Entity bean. and the addStock() and addEmp also in the same bean...
public void addAllData(
String empID,String empName,String stockID,String stockName)
{
addStock(stockID,stockName);
addEmp(empID,empName,stockID);
}
addAllData is depending on two methods ...this kind of scenario I was thinking about..
Please add more details if I am missing something.
Thanks,
Ugender