Hello,
I have a really weird problem. My application is ready for use - but it lacks support for object editing at moment (I implemented "add" and "get" for all objects first, to see the application running)
I am working with hibernate and Flex (graniteds). So my Weblayer is receiving objects in data transfer objects, perhaps the user is editing the object and now passing it to the customer_edit(Customer) method in the servicelayer.
I have now a changed object of my class outside of any hibernate session, maybe some of the collections are initialized (for example customers addressList).
Maybe I could (after validity check for some security) update the object at the database without any cascading. (so the already initialized but not in session collections are thrown away) But now I am lacking of the one-to-one identifier changes (which address of the customer is the standard shipping address is stored at a seperate one-to-one collection)
Help, how is an experienced hibernate developer dealing with such situations?
Thanks
|