| using includes and excludes returns unexpected result using interactive Xtext OCL [message #1229231] |
Wed, 08 January 2014 20:11  |
Eclipse User |
|
|
|
Hi
I am using interactive Xtext OCL inside eclipse for evaluating OCL expressions
I use DB.ecore of the Epsilon project from this link here (see attached diagram plz)
I am trying to evaluate the following constraints over a table instance(context is table) for the instance created over this Ecore:
(self.columns->asSet())->includes(self.primaryKeys->asSet())
I am expecting that above expression return True for my instance as below:
Table Student:
column id
column name
and I choose the "column id" to be its primary key as well. But it returns false!!! Why?
The only difference I see in the ecore file for the "columns" and "primaryKeys" is that the former is byVale and the latter is byRef for the class Table. Does this cause this weird behaviour?
I attached the diagram of the ecore file for better presentation.
[Updated on: Wed, 08 January 2014 21:28] by Moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04084 seconds