Ian
2010-01-15 13:36:28 UTC
All,
I have two applications: one uses Python with Sqlalchemy and the other
uses Java with Hibernate. There is a slight mis-match between the
joined table inheritance strategy: with Hibernate a discriminator is
not required.
The Sqlalchemy documentation says, in the Joined Table Inheritance
section (http://www.sqlalchemy.org/docs/05/mappers.html#joined-table-
inheritance):
"While there are some tricks to work around the requirement that
there be a discriminator column, they are more complicated to
configure when one wishes to load polymorphically."
What are these tricks and where are they documented. I'm not really
all that interested in polymorphic querying in the Python application.
Thanks,
Ian Johnson
I have two applications: one uses Python with Sqlalchemy and the other
uses Java with Hibernate. There is a slight mis-match between the
joined table inheritance strategy: with Hibernate a discriminator is
not required.
The Sqlalchemy documentation says, in the Joined Table Inheritance
section (http://www.sqlalchemy.org/docs/05/mappers.html#joined-table-
inheritance):
"While there are some tricks to work around the requirement that
there be a discriminator column, they are more complicated to
configure when one wishes to load polymorphically."
What are these tricks and where are they documented. I'm not really
all that interested in polymorphic querying in the Python application.
Thanks,
Ian Johnson