[storm] subclassing and foreign keys with respect to properties from parent
Olaf Conradi
olaf at conradi.org
Tue Aug 12 21:46:51 BST 2008
Hello,
I am experimenting with subclassing (or inheritance), and I noticed
the example in https://storm.canonical.com/Tutorial#References%20and%20subclassing.
Why does table employee have a column called "name" in its create
table statement?
I would have expected that Employee.id is a foreign key to Person.id
and that Employee.name gets mapped to Person.name through the foreign
key.
Or should this be done explicitly with a Reference and Proxy? And does
this mean that Employee should not subclass Person anymore?
Regards,
-Olaf
More information about the storm
mailing list