[sqlalchemy] Re: relation to arbitrary class (hibernate any)

2010-04-08 Thread Tvrtko
On Apr 7, 9:29 pm, Michael Bayer mike...@zzzcomputing.com wrote: Tvrtko wrote: I have a schema that cannot be changed. In it, there is a table with two columns:     element_type CHAR(1)     element_id INTEGER There is no foreign key on element_id because it can point to different,

[sqlalchemy] Re: relation to arbitrary class (hibernate any)

2010-04-07 Thread Tvrtko
And to make things event worse, I have to mantain a backref list/dict. On Apr 7, 8:30 pm, Tvrtko qvx3...@gmail.com wrote: I have a schema that cannot be changed. In it, there is a table with two columns:     element_type CHAR(1)     element_id INTEGER There is no foreign key on element_id