[Zope-dev] Experiments with ORMapping

Shane Hathaway shane@digicool.com
Mon, 14 May 2001 12:26:49 -0400


Chris Withers wrote:
> 
> Shane Hathaway wrote:
> >
> > One would define an "ObjectMappingSchema" whose job it is to store and
> > retrieve objects of a specific type and in a specific location.  It
> > would usually grab a database connection object to do its work.  When
> > loading, it would perform a query then manually put attributes into a
> > persistent object.  When storing, it would grab specific attributes from
> > the persistent object and execute a statement to store those attributes.
> 
> How does this differ from ZPatterns? Phil?

ZPatterns implements storage logic on the application level. 
Applications have to be aware of (in fact they have to be centered
around) ZPatterns.  This alternate approach keeps storage logic
independent of application logic.  It lets you take any code written for
the ZODB and move it to your RDBMS schema without changing the code
(most of the time :-) ).

Shane