Hey guys,
I have a tricky question. I have an object that uses a GUID as unique identifier. I know about the unsaved-value attribute in the mapping file.
In my application, the GUID is already set because it comes from an external system. Therefore, NHibernate does not know that this is a new object. Only my application or the domain object can know that (e.g. with a flag).
I'm wondering how I can tell NHibernate on the first SaveOrUpdate call to save the object rather than update it.
Thanks, Christoph
|