mapping a column to separate table

I have model with a list in it. The list contains id values. These ids need to be stored in separate table and no model is defined for this table in the xsd. The class models are generated using generateDS tool from the xsd file automatically. Basically the id table is like a lookup (association) table which maintains associations between two entities. How do I handle this scenario?

ClassA:

id String,

name String,

listIds String

TableA = ('TableA', meta,

id String(255),

name String(255)

TableB = (TableB', meta,

tableA_id String(255),

listIds String(255)

链接地址: http://www.djcxy.com/p/63430.html

上一篇: sqlalchemy + flask:类未定义

下一篇: 将列映射到单独的表