NHibernate and Row Versions (Insert/Update Records)...
I don't like NHibernate! As I use it more and more, I come to terms with this fact and with the fact that I need to find a way to remove it from my projects. :)
My last problem was managing a master/detail/detail relation and making NHibernate insert and/or update the detail records independently from the value of the primary key (which is a Guid).
How? The documentation simply sucks!!! The web site sucks even more!!!
In the end someone had this same problem in the past and found the solution:
When Flushing Goes Bad: Assigned IDs in NHibernate
Note: I preferred a slightly different solution using an Int32 version attribute.
Google is a wonderful thing! :)