|
Posted by Manuel Lemos on 12/16/48 11:59
Hello,
on 09/29/2006 05:41 AM Tony Marston said the following:
>>> On ORM (Object Relational Mapper) most definitely does NOT facilitate
>>> data
>>> retrieval. It is used when the structure within an object is different
>>> from
>>> the structure within that part of the relational database with which it
>>> connects, in which case you need a mapper to deal with the differences
>>> between the two structures. If the two structures are identical then you
>>> don't need a mapper because it is redundant.
>> That is really not the role of Object Relational Mapping. In this
>> context, mapping means translating data structures into SQL statements
>> to store and retrieve such structures from objects.
>
> I disagree. The primary function of an ORM is not to generate SQL
> statements, that is what a Data Access Object is for. An ORM has a different
> purpose which I have already explained. Take a look at
> http://www.martinfowler.com/eaaCatalog/metadataMapping.html
I am afraid you are confusion the purpose with the means. This is what
ORM is:
http://en.wikipedia.org/wiki/Object-relational_mapping
Now, how do you implement it, that is another story.
--
Regards,
Manuel Lemos
Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
Navigation:
[Reply to this message]
|