You are here: Re: Is an ORM tool really necessary for web applications? « PHP Programming Language « IT news, forums, messages
Re: Is an ORM tool really necessary for web applications?

Posted by Manuel Lemos on 11/28/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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация