|
From: John B. <jb...@dr...> - 2003-11-10 20:44:55
|
On Monday 10 November 2003 20:36, Ian Bicking wrote:
> On Nov 10, 2003, at 1:16 PM, John Baker wrote:
> > We really need to discuss superset mappings at some point too ;-)
>
> What're those?
class Area (SQLObject):
class Office (Area):
class Home (Area):
SQLObject creates three tables, with a foreign key from Home -> Area and
Office -> Area.
This means I can do:
class Person (SQLObject):
areas = ReferenceJoin("Area"...)
and map a Person to a number of Areas, without having to map him to Office and
Home via two join tables.
Someone said superset mapping wouldn't be happening, which is a shame, as it's
the most obvious and logical choice of the majority of OO mapping.
John
--
John Baker,
(m) 07736393822
http://rant.pointful.info
|