Dear All,
I am trying to extract structure of DataModel, so: tables, columns, primary key, foreign keys from EA Repository to JSON metadata file (to be used in another software outside EA).
Tables, columns, primary keys are quite clear but I feel stuck for days with
Foreign Key detailed information. Especially the "Involved Columns" displayed on "Foreign Key Constraint" EA screen.
Foreign Keys itself seems to be defined in EA Repo following two places:
- as EA.Method stores in myTable.MethodsEx where StereotypeEx == "FK", providing simple list of Foreign Keys
- as EA.Connector stored in myTable.Connectors where Type == "Association" providing additional handy FK details
The Connector object contains many information for example:
- ForeignKeyInformation - contains DST=PK_name:SRC=FK_name:
- ClientEnd.Role - containt FK name separatelly
- SupplierEnd.Role - containt PK name separatelly
- SupplierEnd.Cardinality - contains Source Cardinality: 1
- ClientEnd.Cardinality - contains Target Cardinality: 0..*
Where the problem is?I am stil unable to find actual columns (list of columns), which are used as part of the defined Foreign Key.
I am missing or overlooking something in the repositoy?It would be nice if you could share some experience or inspire my next steps, please!

Kind Regards,
Patrik