NHibernate.StaleStateException: Batch update returned unexpected row count from update; actual row count: -1; expected: 1

Raj, thanks for also sharing how to do this via the NHibernate code API instead of the configuration file.