I”ve started looking at NHibernate and I must say that I”m impressed with several of its features. However, I”ve reached a point where something isn”t quite right. I”m not sure if it”s me (which is probably the case) or if it”s a limitation/bug of NHibernate. Since I”m really a beginner, I thought I should write a quick post that explains what”s going on. Maybe someone that reads this might help me :,,).
It”s really a simple scenario: there”s an entity which has a collection of components and I expected that calling the Save method over an instance of that entity would also be cascaded to the components maintained by that object.
Instead of describing everything here, I”ll just point to a post I”ve written in the NHibernate forums (it has all the info on what”s happening). If anyone is interested in having a go, then please download the code I”ve attached to this bug entry (it has the necessary SQL to create the tables so getting a repro environment should really be easy).