Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Extending the repository - containment relationships

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

0 votes



3 answers

Permanent link
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.

0 votes


Permanent link
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 ?

0 votes


Permanent link
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 ?

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,940

Question asked: Nov 10 '08, 8:25 a.m.

Question was seen: 5,942 times

Last updated: Nov 10 '08, 8:25 a.m.

Confirmation Cancel Confirm