RE: [PEAR-DEV] OO -> RDBMS mapping
| From: | Lukas Smith | Date: | Fri, 01 Nov 2002 10:08:46 +0000 |
| Subject: | RE: [PEAR-DEV] OO -> RDBMS mapping | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-10412@lists.php.net to get a copy of this message | ||
> >>Hmm I'm not quite sure.JDO includes mapping of class hierarchies to
> RDBMS,
> >
> >not sure how that would work - can you give an example? (or url) ..
> >dataobjects forces you to make a class for each table, - so making
one
> >class extend another table... should be possible.
>
> There are a few ways of doing this mapping. If you want performance
than
> you can map the whole hierarchy to the same table. If you want to save
> space you can map each class to a separate table and use a join. There
are
> also some other ways.
>
but it also means messing with existing tables whenever you add a new
class to the hirarchy. Adding another table is cleaner there ...
And if you want performance you would use an OO-DB (never messed with
one of those though)?
Regards,
Lukas