]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Can now specify Column objects on subclasses which have no
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 12 Jan 2009 20:36:06 +0000 (20:36 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 12 Jan 2009 20:36:06 +0000 (20:36 +0000)
commit32add82d01423732c241ec2f8a422fe16621b5e0
treef5f83c918db505d349c3aff4e734004594a5e4bd
parentdc0bbdd92af2ff2a3fb21c08be46f7d22662e5b8
- Can now specify Column objects on subclasses which have no
table of their own (i.e. use single table inheritance).
The columns will be appended to the base table, but only
mapped by the subclass.

- For both joined and single inheriting subclasses, the subclass
will only map those columns which are already mapped on the
superclass and those explicit on the subclass.  Other
columns that are present on the `Table` will be excluded
from the mapping by default, which can be disabled
by passing a blank `exclude_properties` collection to the
`__mapper_args__`.  This is so that single-inheriting
classes which define their own columns are the only classes
to map those columns.   The effect is actually a more organized
mapping than you'd normally get with explicit `mapper()`
calls unless you set up the `exclude_properties` arguments
explicitly.

- docs/tests
CHANGES
doc/build/mappers.rst
doc/build/reference/orm/utilities.rst
lib/sqlalchemy/ext/declarative.py
lib/sqlalchemy/orm/util.py
test/ext/declarative.py