You need to add a clear() after the last flush. If you miss that, than hibernate will return exactly the SAME instance from its internal cache, where the releationship is not updated.
You need to add a clear() after the last flush. If you miss that, than hibernate will return exactly the SAME instance from its internal cache, where the releationship is not updated. Anyway in my personal opinion it is bad practice not to set the relation ship on both sides by hand.
-- Because if you do not set it on both sides, you always must take care that the entity is reloaded from the database. And if you do not reload the entity from the database than ... (see your test).
Thank you very much. Clear() done the trick. I noticed that there was some sort of cache but I didn't figure out that it was in the session and that clear() would, clear it.
^^ – drame Jul 26 at 13:31.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.