Il giorno 21/mag/05, alle 03:30, Sebastien Arbogast ha scritto:
The problem is that when I edit a bean coming from the spring layer (I don't use binding framework for that because I have many custom things to do), when the edition for is submited there is no "insert" instruction sent to Hibernate (I can see it because all the Hibernate instructions are logged) and the data is not updated. Here is the flowscript of the code which displays the user edition form :
The problem is that your "user" object is detached at the end of the first request, so it stays detached after form.showForm returns and Hibernate has no way of detecting that it has been modified. In order to reattach it to the current session, you have to do a session.update(user).
I think you'll have more replies on the Hibernate forum, though.
Ugo
--
Ugo Cei
Tech Blog: http://agylen.com/
Source.zone: http://sourcezone.info/
Wine & Food Blog: http://www.divinocibo.it/
smime.p7s
Description: S/MIME cryptographic signature
