]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
added 'entity_name' keyword argument to mapper. a mapper is now associated with...
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 3 Apr 2006 21:43:22 +0000 (21:43 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 3 Apr 2006 21:43:22 +0000 (21:43 +0000)
commitabc376c7025b53c790392026e0deaf305299ab6f
tree7b08c09b58eaba04488ad93ddc3965530ac4095b
parent837b5407a4ad385f545c4ba2fb316f3f8056ca9f
added 'entity_name' keyword argument to mapper.  a mapper is now associated with a class via
the class object as well as the optional entity_name parameter, which is a string defaulting to None.
any number of primary mappers can be created for a class, qualified by the entity name.  instances of those classes
will issue all of their load and save operations through their entity_name-qualified mapper, and maintain separate identity from an otherwise equilvalent object.
lib/sqlalchemy/attributes.py
lib/sqlalchemy/mapping/mapper.py
lib/sqlalchemy/mapping/objectstore.py
lib/sqlalchemy/mapping/properties.py
test/alltests.py
test/entity.py [new file with mode: 0644]