X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=doc%2Fref-ooddl.xml;fp=doc%2Fref-ooddl.xml;h=891e213a70dcc09ad053aac05c94f4f8d0699eff;hp=03ab9aafafc5b2b6e93ea16c67b98cb749b76b1c;hb=534849c88501e0ea2ee5dbf78d13d8cb73814d71;hpb=ad3505e2f0d71c858425e4e13b7d9d00e633ba61 diff --git a/doc/ref-ooddl.xml b/doc/ref-ooddl.xml index 03ab9aa..891e213 100644 --- a/doc/ref-ooddl.xml +++ b/doc/ref-ooddl.xml @@ -717,6 +717,25 @@ CLSQL> (title test-user) CLSQL> (nick test-user) "test-user" + + Notes from a refactor of this code. + + There are many assumptions that need to be met for normalized classes to work + + * The each of the classes should have its own single key column (of a different name) + that will contain an identical value. EG: node has a node-id, setting which + is a node has a node-id and a setting-id which must be equal. You cannot use + node-id as the primary key on both tables (as I would have expected). The exception + to this seems to be if your class has no slots at all, then you dont need to have a + single key column, because your class is fully represented in the db by its parent(s) + + * more than one parent class per normalized class should be considered experimental + and untested (vaya con Dios) + + * There are a few code paths that just dont pay any attention to normalized classes + eg: delete-records-for-instance + +