|
|
|
|
|
Re: Property "Unique" for ecore attribute doesn't work [message #491118 is a reply to message #490571] |
Tue, 13 October 2009 11:45 |
Carlos Messages: 52 Registered: September 2009 |
Member |
|
|
Ed,
I have installed Helios distribution, and after that, I have installed EMF: "eclipse-SDK-3.6M2-win32".
When I define an entity attribute in my metamodel, I hope that in runtime, I should not be able to create two or more entities with the same value for that attribute (it was defined like unique).
However, I can do that.
I think that when I open a model with the editor in runtime, editor might should show the error of duplicate attribute in the "problems" tab, like occurs with other type of errors.
Is this OK?
In other case, what can be happening?
Thanks.
|
|
|
Re: Property "Unique" for ecore attribute doesn't work [message #491137 is a reply to message #491118] |
Tue, 13 October 2009 12:47 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
Carlos,
I believe you're misinterpreting what unique means. It means that, for
a multi-valued feature, any given value can appear at most once. It
doesn't mean that two different objects can't have the same value for
that feature; that's more like having isID be true.
Carlos wrote:
> Ed,
>
> I have installed Helios distribution, and after that, I have installed
> EMF: "eclipse-SDK-3.6M2-win32".
>
> When I define an entity attribute in my metamodel, I hope that in
> runtime, I should not be able to create two or more entities with the
> same value for that attribute (it was defined like unique).
> However, I can do that.
>
> I think that when I open a model with the editor in runtime, editor
> might should show the error of duplicate attribute in the "problems"
> tab, like occurs with other type of errors.
> Is this OK? In other case, what can be happening?
>
> Thanks.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07189 seconds