In my database I have table A with primary key IdA and a table B without primary key and with columns IdA (foreign key to A) and IdB (simple column, not a primary key). In code Class A must have a collection of B instances.
Can you please tell me how to create the HasMany mapping in A's classmap? I have tried all sorts of ways and keep receiving errors from NHibernate...missing getter properties, cannot insert null into db columns etc.
edit: after adding a composite key on a test version of this db I get a different error, "Batch update returned unexpected row count from update; actual row count: 0; expected: 1"