thanks for reply! > Wow. uh, you have a lot of extraneous stuff in those mappings.
sorry for these massive mapping files, they were generated by Fluent :) > Anyway, cascades are kind of like the SaveOrUpdate command-i.e. NHibernate > decides what to do. But in order to decide what to do, NHibernate needs > info about whether this is a new or existing entity, which normally happens > though the id. But in my case there is no problem to persist entity with composite-id, it persists (almost) without any problem. The problem is that referenced type, which is part of the id, is not cascading. The referenced type is usual entity with usual id. I don't really understand why NHibernate couldn't look at the referenced entity and figure out if it is transient or not. It looks very natural and shouldn't be that hard to implement IMHO... Or am I missing something obvious? :) bye, Mindaugas --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
