Joined: Thu Jun 29, 2006 7:30 am Posts: 3 Location: PAKISTAN
|
Be happy,
if i hava a collection of objects(in Vector ) and i wanna to save in DB
using the following code
Bill obj ;
<< code for opening session and transaction
for (int i = 0; i < totalBillingSummaries; i++){
obj = (Bill) dbBillingSummaryList.elementAt(i);
session.save(obj)
}
tx.commit etc.
its create only one object(row) in db where as there are 4 object in Vector
------------------
in the same way if i delete multiple records only one record is deleted
kind Suggest with litter bit explanation and code
thansk
|
|