It's all about the answers!

Ask a question

Extending the repository - containment relationships


Vibha Sinha (1643610) | asked Nov 10 '08, 8:25 a.m.
Hello,

I wanted to model the following -
A project class with contained attribute of type requirement.
Each of these has an attribute called "id".

To get a requirement object, do I always have to get the parent "project" object first and then get the requirement from there.
Or is there a direct way to get the requirement given the requirement id ?

Thanks
- Vibha

3 answers



permanent link
Rafik Jaouani (5.0k16) | answered Nov 11 '08, 12:05 a.m.
JAZZ DEVELOPER
If your requirement objects are simple or auditable items and the attribute id is queryable, you can use Item queries (IQueryService) to find requirements matching a given id.

permanent link
Vibha Sinha (1643610) | answered Nov 11 '08, 5:27 a.m.
If your requirement objects are simple or auditable items and the attribute id is queryable, you can use Item queries (IQueryService) to find requirements matching a given id.


When we model something as a contained item, is it not compulsory that it inherits from HelperItem and not Simple or auditable item ?

permanent link
Matt Lavin (2.7k2) | answered Nov 11 '08, 8:18 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
You are right, when you model something as a contained reference, it
will always be a subclass of Helper. You cannot fetch Helpers directly.
If you want to fetch the helper directly, it shouldn't be a a
containment reference, but should be a normal item reference.

-
Matt Lavin
Jazz Server Team


On Tue, 2008-11-11 at 10:28 +0000, vssinha wrote:

When we model something as a contained item, is it not compulsory that
it inherits from HelperItem and not Simple or auditable item ?

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.