tags:

views:

67

answers:

0

Hi All,

I am using hibernate to connect to the database. I am facing an issue which i think is regarding caching/flush. The situation : I am saving an entity e1 in the database and then
i am adding e1 in another entity e2. when i try saving the e2 it is not able to find e1 and throws an index out of bound exception as i am loading e1 into a list and i am fetching that list.

I tried using second level cache and EhCache provider ,used setcachemode(refresh) ,used session.flush. but nothing seems to work. I am struck with this problem and not able to procedd with it .

Thanks in advance, Rima Desai