Generate an identifier for domain entities originates from self.
(self)
| 144 | connection_id: Optional[int] = Field(primary_key=True, auto_increment=False) |
| 145 | |
| 146 | def domain_id(self): |
| 147 | """ |
| 148 | Generate an identifier for domain entities |
| 149 | originates from self. |
| 150 | """ |
| 151 | return domain_id(type(self), self.connection_id, *self.primary_keys()) |
| 152 | |
| 153 | def primary_keys(self) -> Iterable[object]: |
| 154 | model_type = type(self) |