[daisy] Daisy Doc Type inheritance

Marc Portier mpo at outerthought.org
Wed Dec 6 01:58:38 CST 2006



Robert Cecil wrote:
> Has any thought been put into a concept of modeling inheritance with
> Daisy doc types? For instance, a doc type "Investigator" that inherits
> from a more generic "Contact"?
> 

Robert,

short answer: what you ask is not there

as to "putting thought" into it: not over on this mailinglist, at least
not that I know of, so please be invited to start discussions here,
draft out requirements, features, query-language-effects, API's (both
Java and HTTP/XML), prototypes, hints for a solution, actual patches...


in the mean time you can achieve similar effects by creating a separate
'Investigator' doctype that (next to the additional datafields) just has
a required linkfield to an existing "Contact" document

of course this is not what you ask for, but it is not unlike how one
would organize 'inheritance-like' data structuring in a regular RDBMS


additional warning: "When you start to like the new hammer, everything
starts looking like ..."

Daisy is a CMS, not a general purpose RDBMS. If no real additional
(unstructured) content is involved, then it might be wise to just write
your own wiki-extension that accesses your own persistency layer
(regular RDBMS tables) on which you can map your own business objects in
any OO hierarchy you'ld like... it can also use the repo API to store
the content-related stuff in a daisy-repo...

HTH
-marc=
-- 
Marc Portier                            http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at                http://blogs.cocoondev.org/mpo/
mpo at outerthought.org                              mpo at apache.org


More information about the daisy mailing list