[xcore] using "id" as attribute name [message #1776364] |
Wed, 15 November 2017 12:39  |
Eclipse User |
|
|
|
I am trying to implement an existing interface with xcore and I need to have a String attribute called "id".
Something like that:
package sample.model
class User {
String id
}
My problem is that "id" seems to be a special keyword in the xcore dsl.
What are the possibilities?
My current solution is a post processing step (after the code generation) where I modify the name of the attribute with text search and replace.
PS: I cannot change the name of the attribute, because it is driven by an interface that my Ecore-Entity needs to implements (very easy to do with xcore, see my post on that topic)
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07846 seconds