i dont really get what you mean? its like the database dont index or something like that cause if i save CustomerPhone with CustomerPhone repository i get the id righaway but my customer dont have it in its collection if i do a new customer. but if i do a update on a customer and add a customerphone it will get it in the collection righaway.
so im really confused here, if i do a add it wont get the id and if i save with Customerphone reposiotry it got id but wont be in the collection. could it be mapping issue? On 14 Sep, 16:38, Fabio Maulo <[email protected]> wrote: > If you want Id for cascadesession.Persist( > > 2009/9/14 Topflysecurity <[email protected]> > > > > > hi. i wonder what i am missing. let's say i got a Customer and i add a > > CustomerPhone, when i try to use the CustomerPhone id right after the > > save it is 0. i really haven't had this problem before and i don't > > know what to search for on google. so i give it a shot here > > > i read in a other post that i should persist with the session.save(); > > i do call the session.save() in my repository for the save > > > so what does it mean persist and what could i be missing? > > -- > 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 -~----------~----~----~----~------~----~------~--~---
