You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear @Jefidev , RenameAttribute change operator doesn't contain the entity relation because it is redundant. attributeToRename is contained in a Entity and you can access it by eContainmanet() operation/method. Why should we introduce this new field?
Hello,
I am working on a feature enabling user of TyphonQL to evolve their queries based on change operators like this :
changeOperators [
rename entity Product as Item
rename attribute prod as product_id
]
// Insert queries here
from Product p select p where p.id == "1230",
from Product p, Stock s select p, s where p.id == "30",
from Person p select p.name,
The changeOperators could be copy-pasted from a .tml file by the programmer or written by him directly. Thus, this script doesn't rely especially on an .xmi.
If the change operators completely describe the changes this is not an issue but some information are missing.
For the query evolution module, I am relying on the changeOperator syntax.
I started to work on the Attribute evolution and the information about the entity containing the attribute to evolve is missing.
I suggest to change this kind of syntax :
rename' 'attribute' attributeToRename=[Attribute|EString] 'as' newName=EString
By this :
rename' 'attribute' attributeToRename=[Attribute|EString] 'from' entity=[Entity|EString] 'as' newName=EString
or something equivalent.
The text was updated successfully, but these errors were encountered: