Skip to content

Change a Generic Data Access Model

In this section you can find how to update an existing generic data access (GDAL) model from the central facts model, and how to add auxiliary relations to it.

How to change an already deployed model

If the central facts model is changed, you need to update the generic access model as well. In the following, we describe several types of updates that can happen in the central facts model and how they can be implemented in the corresponding generic data access model.

Changes to the model structure and/or relations

Changes to the model structure/relation attributes affects both the physical storage of the central facts layer data and the generic data access model. Example of these changes are:

  • adding or updating an Anchor (Independent Anchor, Dependent Anchor, Foreign Key Link)
  • adding or updating a business key or link key
  • adding a new Context

To implement the changes in the generic data access model:

  1. Open the Mapping Editor Tools > Mapping Editor...
  2. In the following example, you see on the left the Anchor Part, the Context Part Properties and bi-temporal Context Part Retail Price Temporal Mapping editor
  3. If you want to add a new Anchor, go to step 4
  4. If you want to add a new Context, or update an Anchor and/or Context:
  5. Delete the existing generic access entity that is mapped to the changed Anchor and its related Context. Right click on the entity and select Delete.
    Delete attribute or entity in mapping editor
  6. Go to step 4
  7. Drag the relevant Anchor from the central facts model to the generic access model. The related Context entities will be added automatically in the next step.
  8. After you drag the Anchor from the central facts model to the generic data access model, the mapping relations are drawn. You'll see relations between the ID and metadata attributes. This will disappear in the following step. Drag the Anchor to the generic access model
  9. Click on Apply. The related Context entities will be added to the generic access model and the mapping will be automatically set. Mapping finished
  10. Click on OK.
  11. Find in the Object Browser the new entity. Drag the new entity to the model area.
  12. The Anchor can be found in the Stable Independent Entity, all other entities can be found in the Stable Dependent Entity folder. Drag the entities to the model area
  13. Right mouse click on the newly created generic data access entity en select i-refactory > Create References from CFPL. This wil recreate the relations between this entity and other entities, based on the central facts model. Menu Create References from CFPL
  14. The relations between the entities appears. Relations between entities
  15. To enforce the subset constraints of the logical validation model: add the auxiliary relations

Tip

If your change affects a reasonable part of your Model - about one third -, consider creating your generic access model from scratch.

Info

You can't add a Key Root to the generic access model.

Add an attribute to a context

To implement the inclusion of an attribute to a context in the central facts model in the generic data access model:

  1. Open the Mapping Editor with Tools > Mapping Editor...
  2. Drag the new attribute from the central facts model to relevant generic access entity.
  3. Click on Apply and then on OK.

Add a relationship between an Context and Anchor

If you've added a foreign key link between a Context and an Anchor in the central facts model, you need to do additional steps:

  1. Open the Mapping Editor with Tools > Mapping Editor...
  2. Drag the new foreign key attribute from the central facts model to relevant generic access entity.
  3. Click on Apply and then on OK.
  4. In the diagram, rightclick on the relevant generic access entity and select i-refactory > Create References from CFPL.
  5. To enforce the subset constraints of the logical validation model: add the auxiliary relations

Warning

Never drag IDs and metadata to a generic access entity.

Update an attribute in a context

To implement the update of an attribute in a context in the central facts model in the generic data access model:

  1. Open the Mapping Editor Tools > Mapping Editor...
  2. Delete the existing but now changed attribute from the generic access entity. To do this, right click on the attribute and select Delete. Delete attribute or entity in mapping editor
  3. Drag the changed attribute from the central facts model to relevant entity in the generic access model
  4. Click on Apply and then on OK.

Warning

Never drag IDs and metadata to a generic access entity.

Delete an anchor, context or attribute

To implement the deletion of an anchor, a context or an attribute in the central facts model in the generic data access model:

  1. Delete the related generic access entity or attribute.

Delete a relationship

To implement the deletion of a relationship in the central facts model in the generic data access model:

  1. Delete the FK link attributes in the entity.
  2. Delete the (red and blue) relations between the linked entities.

Warning

Never delete IDs and metadata from a generic access entity.

What's next?

After you've created and checked the generic data access model: