Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 365854 - Multiplicity of IDataModelEntity associations and multi-valued IDataModelAttributes
Summary: Multiplicity of IDataModelEntity associations and multi-valued IDataModelAttr...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Scout (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-07 04:47 EST by Andi Bur CLA
Modified: 2021-08-19 11:27 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andi Bur CLA 2011-12-07 04:47:32 EST
1. An IDataModelEntity can have associations to other IDataModelEntities. It is currently not possible to describe the multiplicity of this relation. They are all assumed to be one-to-many or many-to-many. One-to-one and many-to-one associations cannot be modeled. An additional property fixes this issue. Distinguishing between one-to-many or many-to-many and one-to-one or many-to-one is sufficient.

2. The IDataModelAttribute.getType() describes the contents of an attribute and its representation in the GUI. However it does not define whether its content is single- or multi-valued. A new property isMultiValued fixes this problem. The default implementation is based on the different attribute types. The following are considered multi-valued by default:

  DataModelConstants.TYPE_CODE_LIST
  DataModelConstants.TYPE_CODE_TREE
  DataModelConstants.TYPE_NUMBER_LIST
  DataModelConstants.TYPE_NUMBER_TREE
Comment 1 Andi Bur CLA 2011-12-07 13:24:10 EST
implemented as described.
Added additional methods on DataModelUtility
 o to resolve an entity path into an external id and vice versa
 o to sort an array of IDataModelEntity and IDataModelAttribute, respectively
Comment 2 Matthias Zimmermann CLA 2012-07-09 06:49:21 EDT
ticket closed.
deliverd as part of eclipse scout 3.8.0 (juno release train)