That could work but I don't like the fact that each generator instance will be configured separately when only one configuration will be effective. I'll figure something out and I'll let you know.
Thanks a lot. On Tue, Sep 15, 2009 at 3:04 PM, Tuna Toksoz <[email protected]> wrote: > have an IDictionary and key is the sessionfactory. > This is getting dirty:) > > Tuna Toksöz > Eternal sunshine of the open source mind. > > http://devlicio.us/blogs/tuna_toksoz > http://tunatoksoz.com > http://twitter.com/tehlike > > > > > On Tue, Sep 15, 2009 at 3:01 PM, Delucia <[email protected]> wrote: > >> That will work if there is one session factory per application but if >> there more then they will start sharing the lo value which will create >> problems. Also with the way generators are architected, you can only have >> "per table" generators and not "per database" which is what >> hilo essentially is. so I guess it cannot be done in NHibernate. too bad:& >> >> >> On Tue, Sep 15, 2009 at 2:49 PM, Tuna Toksoz <[email protected]> wrote: >> >>> Do your stuff in the generator, instead of instance fields have static >>> fields for high and low, that's it? >>> >>> Tuna Toksöz >>> Eternal sunshine of the open source mind. >>> >>> http://devlicio.us/blogs/tuna_toksoz >>> http://tunatoksoz.com >>> http://twitter.com/tehlike >>> >>> >>> >>> >>> On Tue, Sep 15, 2009 at 2:46 PM, Delucia <[email protected]> wrote: >>> >>>> singleton >>> >>> >>> >>> >>> >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
