No. Even with the optional set to true, NHibernate will always try to run an update statement on the join table if the entity is being updated. If there is no record in the join table, NHibernate still tries to run an update statement against it.
On Oct 28, 11:15 am, Oskar Berggren <[email protected]> wrote: > Isn't this what optional do? > > http://nhforge.org/doc/nh/en/index.html#mapping-declaration-join > > /Oskar > > 2009/10/28 MattMangold<[email protected]>: > > > > > > > Is there a way to use a <join> in your mapping and have NHibernate > > perform an insert instead of an update if the joined record doesn't > > exist?- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
