dukeboard / kevoree-modeling-framework

Kevoree Modeling Framework
http://kevoree.org/kmf
GNU Lesser General Public License v3.0
37 stars 7 forks source link

Identify model elements by a tuple of attributes #34

Closed gnain closed 11 years ago

gnain commented 11 years ago

This feature would enable to specify that a model element is uniquely identified by a not ordered tuple of attributes.

brice-morin commented 11 years ago

You mean something similar to compound primary keys?

gnain commented 11 years ago

Yes, kind of :-) The problem of "compound" key is the composition that means ordering the attributes. Moreover, this composition would hide a bit the fact that the unicity is computer over several attributes. That's why I talk about not ordered tuples of attributes, so you can specify the values for each attribute composing the key rather than composing the key by yourself (that would again require an ordering of the keys).