Re: [sqlalchemy] Multiple inheritance issue

2014-01-10 Thread Enrico Bottani
Thank you very much MichaeI was in fact thinking that it was possible to not found support for that feature. But as you said, the compiler didn't shout at me and the application was running fine so I was thinking that I was doing things right. I'll go for the JOIN. Best, Enrico On Thursday,

Re: [sqlalchemy] Multiple inheritance issue

2014-01-09 Thread Michael Bayer
On Jan 9, 2014, at 11:32 AM, Enrico Bottani wrote: > Hello guys, > > I'm building a web service to provide data to our SDK and I'm facing a wired > problem. I have created 4 different models for my needs, a base class that is > called Unit, two derivatives from the base class VideoUnit, Quest

[sqlalchemy] Multiple inheritance issue

2014-01-09 Thread Enrico Bottani
Hello guys, I'm building a web service to provide data to our SDK and I'm facing a wired problem. I have created 4 different models for my needs, a base class that is called *Unit*, two derivatives from the base class *VideoUnit*, *QuestionUnit*, and the last class is a derivative of both *Vide

Re: [sqlalchemy] multiple inheritance experiment

2011-04-07 Thread Michael Bayer
On Apr 7, 2011, at 2:30 PM, Lars wrote: > Hello, > > I am pretty determined to find a way to get (a simplified version of) > multiple inheritance working with SA. The simplification lies in that > no overriding of attributes will be possible (but I don't know whether > that is significant). I wa

[sqlalchemy] multiple inheritance experiment

2011-04-07 Thread Lars
Hello, I am pretty determined to find a way to get (a simplified version of) multiple inheritance working with SA. The simplification lies in that no overriding of attributes will be possible (but I don't know whether that is significant). I was thinking of a schema as follows: --

Re: [sqlalchemy] multiple inheritance simplified case

2011-03-01 Thread Michael Bayer
On Mar 1, 2011, at 5:42 PM, farcat wrote: > Hi, > > I have been reading the posts on implementing multiple inheritance in > SA. I have a question, for a slightly simpler method of MI, where > there is no overriding of attributes (and e.g. therefore no diamond > problem). This would mean that all

[sqlalchemy] multiple inheritance simplified case

2011-03-01 Thread farcat
Hi, I have been reading the posts on implementing multiple inheritance in SA. I have a question, for a slightly simpler method of MI, where there is no overriding of attributes (and e.g. therefore no diamond problem). This would mean that all underlying tables for classes could contain columns for

[sqlalchemy] Multiple Inheritance

2008-09-03 Thread Sam Magister
I was wondering if it is possible to set up joined table inheritance so that a subclass inherits from more than one base table. To extend the example given in the documentation, we would have a base class 'Employee' and a base class 'Citizen' such that an 'Engineer' would inherit from both Employe

[sqlalchemy] Multiple inheritance and relations

2007-04-27 Thread Dave Harrison
Hi all, I've got a situation where I have a table of data that is common, with the subtables just adding an extra couple of fields. Using multiple inheritance I fit it together as below (pretty much the same as the documented example). What I'm having problems with is then accessing those child

[sqlalchemy] Multiple inheritance and Backrefs

2007-04-13 Thread percious
I am trying to do something like this: PlaceSettingTable = Table("place_setting", metadata, Column('id', Integer, primary_key=True) ) UtensileTable = Table("utensile", metadata, Column('id', Integer, primary_key=True),