Joined: Wed Jun 06, 2007 5:32 am Posts: 10
|
Hi
Am populating the model using Criteria query and am modifying the model as i want and am updating using session.update.It is not throwing any exception in console and the hibernet query also not getting printed in console
here my code;
Criteria cr = session.createCriteria(GDCRateModel.class);
List rateList = cr.list();
GDCRateModel gdcrateModel = null; for(int i=0; i<rateList.size(); i++){
gdcrateModel = (GDCRateModel)rateList.get(i);
here am modifying using gdcrateModel.settervalue("set")
session.update(gdcrateModel);
session.flush();
}
i have tried seesion,beginTransaction also. But it did't work it out
Am using hibernate2 and wsad5.0
any idea abt these isse.??
Thanks
Giri
|
|