This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 228960 - Example MDR doesn't use unique identifiers for local id
Summary: Example MDR doesn't use unique identifiers for local id
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Cosmos (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: amehrega CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-25 17:39 EDT by amehrega CLA
Modified: 2012-01-03 13:47 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description amehrega CLA 2008-04-25 17:39:09 EDT
The example MDR uses course code for each relationship entry.  This isn't unique in cases where there are multiple students enrolled in a class.  The target and source id of the relationship should be appended to course code to construct a unique ID.
Comment 1 amehrega CLA 2008-04-25 17:39:43 EDT
Hubert, please indicate if this needs to be handled in i10
Comment 2 amehrega CLA 2008-06-04 16:52:24 EDT
It also appears that items of classes don't have an associated instance id.
Comment 3 amehrega CLA 2008-06-04 16:53:00 EDT
The following query doesn't generate instance ids for class items:

<?xml version="1.0" encoding="UTF-8"?>
<s:query xmlns:s="http://cmdbf.org/schema/1-0-0/datamodel">
   <s:itemTemplate id="items" suppressFromResult="false" >
      <s:recordConstraint >
         <s:recordType
namespace="http://schemas.examplemdr.org/schema/ExampleMDR" localName="class"/>
      </s:recordConstraint>
   </s:itemTemplate>
</s:query>
Comment 4 amehrega CLA 2008-06-10 11:30:03 EDT
Fix checked into CVS - HEAD.
Updated:
 - The sample: org.eclipse.cosmos.samples.cmdbf.services
 - The queries under: org.eclipse.cosmos.examples.e2e.dr.views
Comment 5 amehrega CLA 2008-06-24 16:43:43 EDT
closing