2008/12/8 Renso <[EMAIL PROTECTED]> > > Why does it not perform the select to retrieve the newly generated id > when I SaveOrUpdate on the parent (product line)? >
Because NH delay the DB access as late as possible.If you really need the ID and you want force the DB access you have two choice: 1) Flush the session 2) Use session.Persist instead SaveOrUpdate (... if I well remember the Persist behavior). -- 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 -~----------~----~----~----~------~----~------~--~---
