On Tue, Dec 7, 2010 at 5:08 PM, Michael Bayer <mike...@zzzcomputing.com> wrote: > This is the "entity name" recipe, and we have a classical and declarative > version over at http://www.sqlalchemy.org/trac/wiki/UsageRecipes/EntityName . > It's using just the straight type() factory. > > You definitely want to use distinct Column objects for each class, this > because a Column object is immediately made to reference its parent Table, > for obvious reasons. Recipes that generate multiple tables from a single > set of Column objects use the copy() method on Column for this purpose. > However, you don't even need to deal with that, since declarative mixins take > care of the copy() stuff for you. I've updated the EntityName example to > illustrate taking advantage of the mixin so check it out.
Thanks ! I am always amazed by how fast and accurately you are always answering here, kudos for this. Cheers Tarek -- Tarek Ziadé | http://ziade.org -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.