From 3d439e180103e3b1aab14094912bb566da2d7f5d Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 30 Aug 2010 20:10:03 -0400 Subject: - a large hill to climb. Added declarative examples to all the "basic relationship" examples, cleaned up the examples and added some more explicitness. Also renamed "treenodes" to "nodes" and added self-referential declarative example. - Added info/examples on how to join tables directly when querying with joined table inheritance. - Starting to talk about hybrids in the main mapper docs some more. introducoed the idea that synonyms are on their way out. - SQL expressions as mapped attributes also gets better verbiage, alternative approaches to them, including hybrids. - modernized the hybrid example. - object_session() as a standalone function wasn't documented ?! --- lib/sqlalchemy/ext/declarative.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/sqlalchemy') diff --git a/lib/sqlalchemy/ext/declarative.py b/lib/sqlalchemy/ext/declarative.py index 3201433f4..b1b083e80 100755 --- a/lib/sqlalchemy/ext/declarative.py +++ b/lib/sqlalchemy/ext/declarative.py @@ -251,7 +251,8 @@ Similarly, :func:`comparable_using` is a front end for the Defining SQL Expressions ======================== -The usage of :func:`.column_property` with Declarative is +The usage of :func:`.column_property` with Declarative to define +load-time, mapped SQL expressions is pretty much the same as that described in :ref:`mapper_sql_expressions`. Local columns within the same class declaration can be referenced directly:: -- cgit v1.2.1