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