I made the changes in the entity, but i don't want that nhibernate persist them.I want nhibernate to persist what is cascade="save-update".
--- A vida me ensinou a nunca desistir, nem ganhar, nem perder mas procurar evoluir. Podem me tirar tudo que tenho! Só não podem me tirar as coisas boas que eu já fiz pra quem eu amo! E eu sou feliz e canto e o universo é uma canção eu vou que vou! On Tue, Jun 30, 2009 at 11:57 PM, Fabio Maulo <[email protected]> wrote: > 2009/6/30 Fernando Zago <[email protected]> > >> Hi fabio, it is exactly what i'm looking for( >> http://fabiomaulo.blogspot.com/2009/03/ensuring-updates-on-flush.html) >> >> but, >> i think that is explicit declared on the mapping, using cascade="none" or >> update="false" >> on many-to-one mapping ? >> > > No. Cascade is for cascade actions that mean what NH should do when you do > something with the root but... auto-dirty-check if always working behind the > scene. > In your case the question should be: why that entity is dirty if I never > modify it ? > If you know you have modified that entity, inside a session-scope, there is > no question to ask. > -- > Fabio Maulo > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
