| 229 | a_id = Column(ForeignKey("a.id")) |
| 230 | |
| 231 | class D(ComparableEntity, Base): |
| 232 | __tablename__ = "d" |
| 233 | |
| 234 | id = Column(Integer, primary_key=True) |
| 235 | c_id = Column(ForeignKey("c.id")) |
| 236 | b_id = Column(ForeignKey("b.id")) |
| 237 | |
| 238 | # 1. set up the join() as a variable, so we can refer |
| 239 | # to it in the mapping multiple times. |