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
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
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 ?
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:
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 ?