nhibernate hasmany to many

When doing a hasManyToMany relationship, SO makes a few observations

In a many-to-many relationship if collections on both entities aren’t populated, NHibernate doesn’t persist data to the link table.
Set Cascade.All()
Use Flush

So it looks like you dont need it on both sides, but you atleast need the cascade and the flush.
damn it looks like nhibernate isnt toilet trained! or its helping us to be

Leave a Comment