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
-~----------~----~----~----~------~----~------~--~---

Reply via email to