Hi,
My Dao class was singleton and setting the session to the dao class was giving the problem.
Once the dao.setSession(session);
I was setting the session and doing the deletion of the table items and subitems and inserting the item and subitem.
But as the Dao class is singleton, when another request comes, it is creating the session and doing the dao.setSession(session), there by overriding the existing session.
That's the reason my list was giving me the problem, that
Illegal attempt to associate the same collection with different open sessions.
Hope this helps.
Best Regards,
Durga
|