Issue 4357: Need more information on how duplicate attributes will be handled. (osf-ftf) Source: Adaptive (Mr. Pete Rivett, pete.rivett(at)adaptive.com) Nature: Clarification Severity: Significant Summary: : For Attributes the spec is very unclear as to whether 'duplicates' (many attributes with the same name on the same Entity/Element) are permitted (e.g. if one calls add_attribute and an attribute of that name already exists). And if duplicates are permitted, whether 'remove' will remove them all, and 'replace' replace them all. Resolution: Revised Text: Actions taken: June 20, 2001: received issue Discussion: End of Annotations:===== Issue: Need more information on how duplicate attributes will be handled. Source: Adaptive Ltd. (Mr. Pete Rivett, pete.rivett@adaptive.com) Nature: Clarification Severity: Significant Summary: For Attributes the spec is very unclear as to whether 'duplicates' (many attributes with the same name on the same Entity/Element) are permitted (e.g. if one calls add_attribute and an attribute of that name already exists). And if duplicates are permitted, whether 'remove' will remove them all, and 'replace' replace them all. Resolution: Revised Text: Actions taken: From: "Amy Griffis" To: Subject: FW: Proposed resolution for 4357, a question... Date: Sat, 1 Sep 2001 23:49:27 -0700 Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal Content-Type: text/plain; charset="iso-8859-1" X-UIDL: 1?o!!P7~e9"K1e97%Pd9 -----Original Message----- From: Amy Griffis [mailto:amygriffis@home.com] Sent: Monday, August 27, 2001 5:42 PM To: osf-ftf@omg.org Subject: Proposed resolution for 4357, a question... Issue 4357: Need more information on how duplicate attributes will be handled. (osf-ftf) Source: Adaptive Ltd. (Mr. Pete Rivett, pete.rivett@adaptive.com ) Nature: Clarification Severity: Significant Summary: : For Attributes the spec is very unclear as to whether 'duplicates' (many attributes with the same name on the same Entity/Element) are permitted (e.g. if one calls add_attribute and an attribute of that name already exists). And if duplicates are permitted, whether 'remove' will remove them all, and 'replace' replace them all. Proposal: I suggest we raise a Duplicate exception for the instances described above. Duplicate attributes should not be allowed, it just doesn't make sense for anything I can think of, unless someone can think of some good examples. Of course, we could also think duplicates would be a way of setting multiple values for an attribute in a one to many scenario. For example, if an employee could have more than one company cars, where there would be an attribute added for each car instance. Or could this be taken care of by the value string with a delimiter, such as: name = "company_car", value = "Volvo; Subaru". This can get more complicated too, there would need to be rules added, to specify whether the object could have multiple instances of the attribute. What is the group consensus for this? Carol, do you have any feelings one way or the other for this, since you already have an implementation out there?