<div id="mb_0">Hi all, <br><br>I have a created a Table model that has
an attribute called tableID. This attribute should be unique. Therefore
I have created the OCL statement <br><br>project.allInstancesOf(Table)-&gt;isUnique(tableID)<br>

<br>and attached the constraint to the table object (the OnCreate event), which sadly always evaluates to false. <br>I'd like to note that the reason I use project.allInstancesOf(Table) is that a table can exist in different parent models. 
<br>I any of you guys or girls could please help me I'd really be happy. <br><br>Have a nice weekend<br>-- <br>Kind Regards, <br><span class="sg">Nicki</span></div><br>