| 48 | By default, all fields that the table and the super-entity have in common will be mirrored in the super-entity ("shared fields"). You can override this by specifying a list of fields to be mirrored by the super-entity. |
| 49 | |
| 50 | {{{ |
| 51 | s3xrc.model.configure(table, |
| 52 | super_entity = db.sit_situation, |
| 53 | sit_situation_fields = ["datetime"]) |
| 54 | }}} |
| 55 | |
| 56 | In case your table uses different names for the shared fields, you can use a dict instead to specify a mapping: |
| 57 | |
| 58 | {{{ |
| 59 | s3xrc.model.configure(table, |
| 60 | super_entity = db.sit_situation, |
| 61 | sit_situation_fields = dict(datetime="timestmp", location_id="location_id")) |
| 62 | }}} |