I am not sure if this is dumb question, but let's assume I have the following package structure:
A [Package]
-->A100 [Package]
---->A120 [Object]
B [Package]
-->B100 [Package]
---->B110 [Object]
Sparx EA stores the data for the above structure twice on in t_object and again in t_package; nothing new here.
I am interested in 2 columns from t_object, object_id and package_id, and one from t_package, package_id, and their relationships.
Looking, at the results from various queries
> If the object is a package, t_object.package_id is the identifier of the parent package - e.g. for A100 it is the package identifier of package A, but
> If the object is not a package, it is the identifier of the package where the object is located - e.g., for B110 it is identifier of package B100.
Have I misunderstood something? I guess in both cases it is the identifier of the container package.
The reason for the question is that I am trying to understand what the #Package# and #Branch# macros pass as their parameters. The package_id from t_package, the object_id from t_object, or the package_id from t_object.