From LDM To Flat Structures - eclipse-efbt/efbt GitHub Wiki
This page is under construction
It is useful to be able to create a flat structure from the LDM (or ELDM) in BIRD.
It is not immediately obvious how to do this given the use of inheritance in the LDM
However this problem is not new, and there is lots of useful literature and frameworks in the field of Object Relational Mapping to help us with this task.
Within Eclipse Free BIRD Tools we take the ELDM and create a product specific 'slice' of an Output Layer that is specific to a single regulatory report.
The code to do this is at https://github.com/eclipse/efbt/blob/develop/birds_nest/pybirdai/process_steps/joins_meta_data/ldm_search.py
We take an approach where we find the different entities of an LDM that need to be included in the flat structure.
The approach can be considered as recursively going 'up and across' form one or more entity in the LDM.
Here up means going up an inheritance tree and across associations, but never down an inheritance tree.
We will describe this in more detail with pictures and examples to make it clearer.