Hi!
I have a one to many relationship between PolicyCategory and Policy.
Class Group has a one to many relashionship to Policy.
I created some Value Objects and Assemblers so I can only load a Policy reference when I'm updating a Group. I don't want to get the full Policy object (including PolicyCategories) when I'm loading the Group.
Now, when I'm saving the Group object, I'm saving a collection of Policy references as well but because Policy instances are just references, the value object will have no PolicyCategories and the domain object will get a null PolicyCategory. At that time NHibernate does not save because PolicyCategory is null. But I never set PolicyCategory.
Thanks
|