Hi again and thanks for help me.
First of all, I'm using one session to load data, then send them to user (and close session) and in a new session I'm trying to update data.
So if I understand you, I have to use the same Set loaded with Hibernate to save/update/delete the objects (in my many-to-one), so I can't create one new DAO object which contains the modified data received from UI (with the same ID as the original) and saveorupdate() it, I have to load the old data and in this object make changes with values that I have received from user and after that saveorupdate? Because I have no problem to make changes to one object alone (I dont need to load the object first), I have problems with relations.
I know those are very beginner problems ... thanks again for your help.
|