On Mar 18, 11:27 pm, Fabio Maulo <[email protected]> wrote:
> 2009/3/18 Jiho Han <[email protected]>

> > #4 is where I am stuck with Identity Map pattern.  Basically, Fowler's
> > implementation in the book is a basic implementation where the objects
> > are stored in ArrayList and the containment is checked on .net object
> > reference equality.  If you had a million objects, let's say, that
> > won't be efficient obviously.  But leaving performance/scalability
> > concerns out of the window for now, how does NHibernate deal with
> > object equality?
>
> internally NH are using POID or Reference equal depending on the state of
> the obj, BTW the equality is not only a NH matter, you should implement your
> concept of equality (for example if you want use an HashSet or a
> Dictionary).

I do use dictionary and compare the Identity Field in my Identity
Map.  But the problem (don't know yet it is a problem) is that the
object references that the client holds and the DAL dishes out can be
different, and so they may hold different values.  I would like to
know more about how "internally NH are using POID or Reference equal
depending on the state of the obj" - can you elaborate without
referring me to the book for the moment? :)

Thanks much,
Jiho
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to