This doesn't make any sense. why do you need a unique id on a transient object, only to toss it aside (not save it)?
On Oct 8, 6:14 am, kor <[email protected]> wrote: > hi all, i need a way to create a new id. > i need to create a temporary entity wich will not be saved in the db > but i need that it has an unique id > > for what i had understand i need to get the GetIdentifierGenerator to > call GetIdentifierGenerator but i don't know > > - where i can get a reference to the current istance of > GetIdentifierGenerator > - what object i need to use as arguments of GetIdentifierGenerator > (System.Type rootClass) > - if i can have same problems to generate a new id externally (for > example becouse i need to syncronize my code to have thread safety > with the nhibernate code that calls the IIdentifierGenerator.Generate > method) > > thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
