Hi,
i want to map two classes m:n associated using NHibernate. NH would map a simple m:n association in a link table with foreign key constraints to the entity tables. Now I want to attach more attributes to the association as seen on this example:
(and I want NHibernate to store these attributes in the link table) This UML diagram shows how you would "resolve" the association class for programming. Up to now, I did this myself and coded 3 classes Person, Book and PersonBookLink with PersonBookLink having the returnDate attribute. NHibernate is fine with the mapping, but I'm looking for a less complex way to navigate through this model.
How would you do the mapping in NHibernate?