Sunday, 12 October 2014

Component relation with different level of entities (tables).


Component is self-contained and provides core grain re usability i.e one layer above abstraction of Objects, which provides fine grain re usability.
As component is self-contained so cannot consume other component data directly through database calls.
Component can directly use only self-data, and self-domain and enterprise entity / tables through database call.
In this way we can categorize entity in 3 levels
1.       Enterprise level Entities such as currency entities, bank master entity, and branch entity.
2.       Domain level entities  such as in lending domain, customer account entity.
3.       Component level entities
By example
Enterprise (Such as Bank)
Domains (Lending, Core Banking,..)
Component (Repayment is component of Lending)
Repayment component can directly consume only repayment‘s entity along with his domain’s Lending and enterprise level entities, to consume with other component/domain should get data through other component ‘s interface.