Ok, I've replaced <key-property name="ShippingMethod" column="shipping_method" /> with <key-many-to-one name="ShippingMethod" class="Shipping" column="shipping_method" /> and set reverse="true" and cascade="all-delete-orphan" on the bag. With cascade="all" element cannot be removed. I don't really understand in which cases we have to use cascade="all" rather than cascade="all-delete-orphan"... anyway it works like a charm like that. Could you also tell me why nhibernate needs the <version /> property when dealing with composite-id ?
Thank you very much for your help. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
