Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forums[xcore] using "id" as attribute name
https://www.eclipse.org/forums/index.php/mv/msg/1090022/1776364/#msg_1776364
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)
]]>Jeremie Bresson2017-11-15T17:39:47-00:00Re: [xcore] using "id" as attribute name
https://www.eclipse.org/forums/index.php/mv/msg/1090022/1776396/#msg_1776396
package ^package
class Class
{
id String ^id
}
]]>Ed Merks2017-11-16T07:56:19-00:00Re: [xcore] using "id" as attribute name
https://www.eclipse.org/forums/index.php/mv/msg/1090022/1776397/#msg_1776397
Jeremie Bresson2017-11-16T08:03:19-00:00