Hi. I have the following structuring of classes with a base class without a
table.
User(base):
address = relationship('Address', backref=backref("user", uselist=False))
address_id = Column(Integer)
Address(base):
__tablename__ = 'address'
info = Column(String(255))
Info2 = Column(String(255))
Employee(User):
__tablename__ = 'employee'
__mapper_args__ = {'concrete':True}
Manager(User):
__tablename__ = 'manager'
__mapper_args__ = {'concrete':True}
How is user going to be able to maintain the relationship with address
without a table, especially because the relationships are statically
defined using the class/table names? And what would be the best possible
solution in this case?
Regards
Loknath Bharti
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.