dukeboard/kevoree-modeling-framework

Identify model elements by a tuple of attributes

gnain opened this issue · 2 comments

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

You mean something similar to compound primary keys?

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).