Re: Finally which ORM tool?



James Crosswell <james@xxxxxxxxxxxxxx> wrote:
Without any context/session idea, you can't do that. It's unimportant
in some scenarios, and vital in others.

Hm, I'm still not sure I see the significance of this. Essentially
you're saying you want to keep only one instance of a particular object
in memory (anywhere in memory) at any one time (one object per row)??? I
can't think of any reason to require such a thing.

Suppose I fetch (within the context of a web request, for instance)
some suppliers and some customers. These both have addresses which are
stored in another table.

Now, what happens if a supplier and a customer both have the same
address, represented by the same row in the database? If I change the
details of the address of the supplier, it *should* change the details
of the address of the customer, because they're the same entity. If you
have identity management, you can make sure this happens - if you've
created two separate objects for the same address, you could change
each object independently, then issue updates to the database thinking
everything is okay when it's not.

In a nutshell, identity management allows the loaded entities to more
closely reflect the actual situation in the database.

(Within different sessions, you'd want different objects so they can
have different lifetimes etc - an update in two sessions may well cause
a concurrency violation, but that should be expected and catered for.)

--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
.



Relevant Pages

  • Filtering results
    ... the filter column will be A and i want to name the range ... "Customer" just as i have named the range in Supplier as "Database"! ...
    (microsoft.public.excel.programming)
  • Spreadsheet/VBA Project Consulting: 50% Discount or Even Free - Limited Time Only
    ... UDQ Consulting Services Believes that Every Problem Should Have an Easy & ... templates, spreadsheet applications, and database applications. ... P001: Mortgage Transaction Spreadsheet Database ... Customer List Converted from Excel Table to Word ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Spreadsheet/VBA Project Consulting: 50% Discount or Even Free - Limited Time Only
    ... > UDQ Services has years of experience with MS Excel and VBA (Visual Basic ... > templates, spreadsheet applications, and database applications. ... > P001: Mortgage Transaction Spreadsheet Database ... Customer List Converted from Excel Table to Word ...
    (microsoft.public.excel.worksheet.functions)
  • Spreadsheet/VBA Project Consulting: 50% Discount or Even Free - Limited Time Only
    ... UDQ Consulting Services Believes that Every Problem Should Have an Easy & ... templates, spreadsheet applications, and database applications. ... P001: Mortgage Transaction Spreadsheet Database ... Customer List Converted from Excel Table to Word ...
    (microsoft.public.excel.programming)
  • Spreadsheet/VBA Consulting - 50% Off or Even Free
    ... UDQ Consulting Services Believes that Every Problem Should Have an Easy & ... templates, spreadsheet applications, and database applications. ... P001: Mortgage Transaction Spreadsheet Database ... Customer List Converted from Excel Table to Word ...
    (microsoft.public.excel.misc)

Loading