sergey wrote:
What kind of better support do you have in mind? You don't have to map a full entity for the "middle man" in a many-to-many associations, you can use <composite-element> instead.
Actually, composite-element doesn't do what I need it to do. what my database looks like is
contact
Id
Name
AddressContact
ContactId
AddressId
Primary
Address
Street
City
State
Zip
What I want my classes to look like is:
Contact
Id
Name
Address
Contact
Primary
AddressId
Street
City
State
Zip
I want the Contact Address table to go away like it should with a normal many-to-many relationship. But for storage reasons I want the primary flag to be in the linking table...
Using Composite-Element has done nothing for me other than sending me on a goose chase trying to figure out what the heck a ISet is going to return.... Aparently you dont know what NHibernate is going to do becuase if you create a set it changes it to what ever it feels like putting it into.... That has proved to be a nasty issue the last 24 hours becuase I cant create some sort of container without NHibernate choking... So I will go back to the plain old one-to-many and many-to-many relationships until the documentation is better or we decide to purchase a better tool...