| | 4 | |
| | 5 | Component resources are an S3 framework concept to simplify the implementation of and access to aggregation models, which is the most common type of data models used in Sahana-Eden. |
| | 6 | |
| | 7 | Typically, such an aggregation model has a master entity and a number of associated (sub-)entities ("have"-relationships): |
| | 8 | |
| | 9 | - organisations = have => offices, projects, teams |
| | 10 | - persons = have => addresses, identities |
| | 11 | - groups = have => members, tasks |
| | 12 | |
| | 13 | Each of these relationships can be represented by a join between the respective tables. |
| | 14 | |
| | 15 | The "Component Resource" extension provides the functionality to pre-configure and re-use these joins as pseudo-attributes of the master entity. |
| | 16 | |
| | 17 | The following diagram describes the supported joins: |