[sqlalchemy] Re: Joined Table Inheritance question

2011-03-10 Thread Franck
I'm trying to reply myself... maybe I could set *polymorphic_identity=None *at the Employee level, and define the DB field EMPLOYEE.TYPE field as not nullable... Would that work ? Is there a better way ? Thanks ! Franck On Thu, Mar 10, 2011 at 2:00 PM, Franck franck.pe...@gmail.com wrote: Hi,

[sqlalchemy] Re: Joined Table Inheritance question

2011-03-10 Thread Eric Ongerth
Or just leave the polymorphic_entity='employee' and put a CHECK constraint on the table enforcing that the value of that column is not 'employee'. Or just don't code anything that can add a generic employee :) On Mar 10, 8:23 am, Franck franck.pe...@gmail.com wrote: I'm trying to reply