which POID generation strategy are you using ?How look the mapping ? 2009/6/1 Niclas Pehrsson <[email protected]>
> > Hi I'm building a distributed system, the client has one database > which needs to be synchronized and some modifications to a master > server with WCF services. > > The persisting of the object in the client goes smoothly no worries > here. > > But when I uses > > session.Save(receipt) on the server-side, it only marks the top of the > objectgraph as save not its children > it would result in that I only gets my receipt save and not receipt > entries. > > I have choosen to let receiptentry to control the insertion because I > don't want to let the ReceiptId in the ReceiptEntry table to be null > at any time. > > It seems like NHibernate believes that the RecetiptEntries already has > been saved cause they already been given an Id. How can I mark the > whole receipt object graph to be inserted event with already assigned > ID's and not only the top? > > Do I need to first save my receipt and then iterate through its > children and save them one by one? > Or is there something else smoother I can do? > > > -- Fabio Maulo --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
