bojanb wrote: > > Hi, > > Can I have identical column names in both parent and child classes > that are part of a joined-table inheritance? These are simply created, > created_by, modified, modified_by columns that are populated by > defaults defined for them (ie. default, server_default, onupdate). > > The values are written to the database correctly, but I have a problem > reading them because parent's column values override child values. So, > if the parent has null values for modified, modified_by and the child > some actual values, ORM returns None for child.modified and > child.modified_by.
use the "properties" dictionary to mapper to redefine the names. or the declarative equivalent. see http://www.sqlalchemy.org/docs/05/mappers.html#customizing-column-properties > > Suggestions? > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@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 -~----------~----~----~----~------~----~------~--~---