Den 16 april 2012 13:20 skrev KR <[email protected]>:
> 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.


Seems reasonable. Can you find another reason why the State object is
being updated?


/Oskar

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