[sqlalchemy] Re: Abstract base class

2008-12-04 Thread Guillaume
On Dec 3, 7:39 pm, Michael Bayer [EMAIL PROTECTED] wrote: On Dec 3, 2008, at 1:26 PM, Guillaume wrote: Hello, is there a way with the ORM layer to have abstract base class like in django ? http://docs.djangoproject.com/en/dev/topics/db/models/#abstract-base- classes sure, just

[sqlalchemy] Re: Abstract base class

2008-12-04 Thread Guillaume
sure this is called concrete table inheritance.   Though when you   make a relation to Order, you need to declare these separately for   CorporateCustomer and PrivateCustomer since the connection from a   relational perspective is different.   When concrete inheritance uses   an abc, it

[sqlalchemy] Abstract base class

2008-12-03 Thread Guillaume
Hello, is there a way with the ORM layer to have abstract base class like in django ? http://docs.djangoproject.com/en/dev/topics/db/models/#abstract-base- classes Another somehow related question is there any plan for declarative base to support inheritance ala django ? Regards, Guillaume