In an Object Oriented Model (OOM), you can create the following types of mappings:
Object to relational (O/R) mapping between OOM classes and PDM tables to manage the persistence of objects in a relational database. See Object to Relational (O/R) mapping.
Object to conceptual mapping between OOM classes and CDM entities to express a simple correspondence between objects in a Conceptual Data Model.
Object to Object mapping between OOM classes and the classes of another OOM to express a simple correspondence between OOM objects.
The following table shows all the allowed mappings with OOM objects:
Target OOM object |
Source PDM object |
Source CDM object |
Source OOM object |
---|---|---|---|
Class |
Table |
Entity |
Class |
Class attribute |
Table column |
Entity attribute |
Class attribute |
Operation |
SELECT or UPDATE queries associated with a table |
— |
— |
Association |
Reference, view reference, table or view |
Association, relationship |
— |