dukeboard / kevoree-modeling-framework

Kevoree Modeling Framework

Home Page:http://kevoree.org/kmf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Identify model elements by a tuple of attributes

gnain opened this issue · 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).