Hi guys,
I use the baseline feature and have a question. I structered my model in the following way:
- model package
- (some cross-system views)
- System x
- some system-specific views
- element X
- System y
- again some system-specific view
- element Y
the baseline of the model represents a snapshot of my system-landscape. The system(-packages) have its own baseline. The elements (e.g. element X, element Y) have also a version (in their version-property).
I want to know now which baseline (from root-Model or at least from the parent package) contains my element in version x.y.
I guess the SQL-Search is the only solution for me, so I tried a statement like this:
SELECT pack.Package_ID, doc.Version, obj.Version, obj.Name, doc.DocName, pack.ea_guid
FROM `t_document` AS doc, `t_object` AS obj, `t_package` AS pack
WHERE obj.Package_ID = pack.Package_ID AND pack.ea_guid = doc.ElementID AND obj.Name like 'element X' AND obj.Version = '7.7'
But this statement is wrong and has also some confusing behavior. For example, if I restore the baseline from the root, which contains the element "elemnt X" in verson 7.7,
then this statement gives all baselines from the parent package. If i restore a root-model-baseline which does not contain the element in version 7.7, then this does not give any result.
Please note that I am not very familiar with sql.
Thank you very much.
Regards,
Toni
Edit: I just opened the .eap-File with access and it is still confusing me. If I restore the model-baseline 1.1, which cointains element X in version 1.0, the table "t_object" contains this element in version 1.0.
But when I open the file again in EA and restore the model-baseline 2.2, wich contains element X in version 7.7, the table "t_object" contains this element in version 7.7. So where does ea save the element version?