| 2604 | return not isinstance(other, Point) or not self.__eq__(other) |
| 2605 | |
| 2606 | class Graph(cls.DeclarativeBasic): |
| 2607 | __tablename__ = "graph" |
| 2608 | id = Column( |
| 2609 | Integer, primary_key=True, test_needs_autoincrement=True |
| 2610 | ) |
| 2611 | name = Column(String(30)) |
| 2612 | |
| 2613 | point_data = relationship("PointData") |
| 2614 | |
| 2615 | points = association_proxy( |
| 2616 | "point_data", |
| 2617 | "point", |
| 2618 | creator=lambda point: PointData(point=point), |
| 2619 | ) |
| 2620 | |
| 2621 | class PointData(ComparableEntity, cls.DeclarativeBasic): |
| 2622 | __tablename__ = "point" |