Is there a reason why you don't use a many-to-many relation? I assume
there are additional properties in the assignment class?
You should probably use the <key-many-to-one> element instead of the
<key-property> element, to tell NH that this id is actually many-to-
one relation. i never used this, just looking up the documentation.