| 2243 | Base = cls.DeclarativeBasic |
| 2244 | |
| 2245 | class A(ComparableEntity, Base): |
| 2246 | __tablename__ = "a" |
| 2247 | id1 = Column(Integer, primary_key=True) |
| 2248 | id2 = Column(Integer, primary_key=True) |
| 2249 | |
| 2250 | bs = relationship("B", order_by="B.id", back_populates="a") |
| 2251 | |
| 2252 | class B(ComparableEntity, Base): |
| 2253 | __tablename__ = "b" |