Hi, I replied to you privately with a slightly modified working sample. Some notes:
- You didn't include code for the Tag and TagMap classes; shame on you! ;-) - The Timestamp properties were not being set; are you going to use some listener for that? If so, you didn't mention it; - The Version was using an UnsavedValue of "NULL", which doesn't really make sense - the field and the underlying column are both mapped as int, which is never null - so I removed it and used DefaultValue; Everything works as expected, in my machine, at least! RP On Wednesday, October 1, 2014 11:22:26 PM UTC+1, Ricardo Peres wrote: > > Hi, Charles! > > I apologize, I didn’t see your mappings because Google Groups was hiding > part of the message - I had to click a "show trimmed message" link that I > hadn't noticed. > > Don't see anything obvious. Perhaps some other community member who is > more skilled than I have can help. I'll have a look anyway and will let you > know. > > RP > > > > > On Wednesday, October 1, 2014 4:37:22 PM UTC+1, Charles Jenkins wrote: >> >> Ricardo, >> >> (I'm retrying a post that never appeared yesterday.) >> >> I don't understand remark 1 yet. As you can see in the CompanyMap object, >> Cascade All is configured in the Company -> Contact mapping. Where else did >> you mean I should put it? >> >> On Monday, September 29, 2014 4:39:11 PM UTC-4, Ricardo Peres wrote: >>> >>> Hi, >>> >>> Some remarks: >>> 1) you don't need two Save calls if you configure cascading from one >>> entity's property to the other entity (company to contact); try "all"; >>> 2) the way you are deleting objects is vary bad, in performance terms; >>> see, for example, >>> http://weblogs.asp.net/ricardoperes/deleting-entities-in-nhibernate; >>> 3) if you don't need GuidComb (and I guess not) you can use other Guid >>> flavors for a slight performance improvement - GuidComb ids are ordered >>> temporally. >>> >>> RP >>> >>> -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/nhusers. For more options, visit https://groups.google.com/d/optout.
