Hi,
How do I get NHibernate to save or update using column other than the <id>
? I've implemented an identity key column in a table but this is not what makes a row unique. I know that "composite-id" exists but I heard that that should only be used on legacy databases, where there is not much freedom to change it. Is there any other way to implement unique keys without using an artifical key? Should I make my own key based on a hash of the columns that make a row unique? If I do that, won't NHibernate complain when it tries to insert an object with a manually assigned key?