Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Ecore Tools » EAttribute "ID" with Auto Increment(EAttribute "ID" with Auto Increment)
EAttribute "ID" with Auto Increment [message #1696534] Wed, 27 May 2015 07:22 Go to next message
Alexander Schledewitz is currently offline Alexander SchledewitzFriend
Messages: 10
Registered: March 2015
Junior Member
Hey everybody,

I'm trying to create an Ecore Diagramm for Petri Nets (see attached file)

Every element of the Petri Net should have an ID which should automatically be incremented. Is ist possible to model it in the ecore diagramm (Couldn't find anything in the properties of the EAttribute)

Another question: Is it possible to overwrite inherited EAttributes?

Thanks in advance!

  • Attachment: Petri.JPG
    (Size: 26.14KB, Downloaded 212 times)
Re: EAttribute "ID" with Auto Increment [message #1732557 is a reply to message #1696534] Wed, 18 May 2016 09:02 Go to previous messageGo to next message
Cedric Brun is currently offline Cedric BrunFriend
Messages: 431
Registered: July 2009
Senior Member
Using the ecore diagram you'll be able to model that the EAttribute is an ID (id=true). But for the auto-increment part you'll need to add your logic in the generated Java code. news and articles on eclipse and eclipse modeling.
Re: EAttribute "ID" with Auto Increment [message #1743622 is a reply to message #1732557] Sat, 17 September 2016 08:43 Go to previous message
Xi Ng is currently offline Xi NgFriend
Messages: 26
Registered: June 2016
Junior Member
Hello Alex,

did you get your problem fixed?
If so, would you be able to share with the community, how exactly you did it?
I have the same problem. That would be very nice of you Smile!

Previous Topic:Illegal argument exception for "Name" property
Next Topic:Load/Serialize JSON data into EMF Model
Goto Forum:

Current Time: Fri Nov 27 00:37:01 GMT 2020

Powered by FUDForum. Page generated in 0.01622 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top