I have a technical problem with NHibernate auto mapping. I have Address table which has references to Country and State tables, when state is not available for a particular country we are accepting the user input and adding them to master table.
With below mapping mapping.References(x => x.State).Cascade.SaveUpdate().Fetch.Select().LazyLoad(); This works fine with new state values, but for any address update state table is getting updated and which is causing stale object errors for other users. I have tried blow mapping mapping.References(x => x.State).Not.Insert().Cascade.SaveUpdate().Fetch.Select().LazyLoad();, no success, Any help please. -- 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.
