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 ?

---
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 2:42 PM, Fabio Maulo <[email protected]> wrote:

> and if you don't like auto-dirty-check:
> http://fabiomaulo.blogspot.com/2009/03/ensuring-updates-on-flush.html
> that now if part of uNhAddIns.
>
> 2009/6/30 Fernando Zago <[email protected]>
>
>> i don't think so, its a simple reference, otherside mapping does not have
>> a bag.
>> ---
>> 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 2:37 PM, Plácido Bisneto <
>> [email protected]> wrote:
>>
>>> inverse=true ?
>>> Plácido Bisneto - .NET Developer
>>> Blog: http://cidico.wordpress.com
>>> OpenControls: http://opencontrols.codeplex.com
>>>
>>>
>>>
>>> 2009/6/30 Fernando Zago <[email protected]>
>>>
>>>> i've made an change but the "strange" thing continuous...
>>>> i've change the
>>>> <many-to-one name="Country" column="[CountryID]"
>>>> class="Business.Country, Business" cascade="none" lazy="false"
>>>> not-null="false" />
>>>>
>>>> to
>>>>
>>>> <many-to-one name="Country" column="[CountryID]"
>>>> class="Business.Country, Business" cascade="none" lazy="false"
>>>> not-null="false" insert="false" update="false" />
>>>>
>>>> but nHibernate updates de "Countries" table anyway !
>>>>
>>>> has someone any idea whats going on ?
>>>>
>>>> ---
>>>> 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!
>>>>
>>>>
>>>> 2009/6/30 Fernando Zago <[email protected]>
>>>>
>>>>> <class name="Country" table="[Countries]">
>>>>> <id name="ID" column="[ID]" type="System.Int32">
>>>>>  <generator class="identity" />
>>>>> </id>
>>>>> <property name="Name" column="[Name]" type="System.String"
>>>>> not-null="false" length="512" />
>>>>> </class>
>>>>>
>>>>> <class name="Region" table="[Regions]">
>>>>> <id name="ID" column="[ID]" type="System.Int32">
>>>>>  <generator class="identity" />
>>>>> </id>
>>>>> <property name="Name" column="[Name]" type="System.String"
>>>>> not-null="false" length="256" />
>>>>>  <many-to-one name="Country" column="[CountryID]"
>>>>> class="Business.Country, Business" cascade="none" lazy="false"
>>>>> not-null="false" />
>>>>> </class>
>>>>>
>>>>> when i'm save Region and has changed the Name of the Country nHibernate
>>>>> perform an update on Contries table.
>>>>> Why ? cascade none does not working here ?
>>>>>
>>>>> ---
>>>>> 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!
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>>
>
>
> --
> 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