Gert,
Quote:
So, if You are using SaveOrUpdate anywhere, maybe You should add sensible unsaved-value to mappings? Otherwise I suspect You call "Save" instead of "Update" somewhere.
currently my construction calls Session.Save() when the application edit masks is loaded with a new "item"; when the users are loading the edit mask with an already existing item, the code just calls Session.Update()
I will now try to swith over to Session.SaveOrUpdate(), but i'm not sure if this will fix my problem.
Regarding this "unsaved-value mapping", i'm not exactly sure what you you want me to set it:
nhibernate_reference.pdf wrote:
unsaved-value="any|none|null|id_value"
which parameter should i try, in your oppinion ? should i just copy&paste this "any|none..." ?
strange to me is the following line from this PDF:
Quote:
The unsaved-value attribute is almost never needed in NHibernate 1.0.
my problem is, that my code will go into beta-production next tuesday, and currently i'm not sure how to handle this issue; as said, most of the time it works out correctly, but sometimes it won't.
thanks in advance.