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 147 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: 430
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.

http://cedric.brun.io 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!

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


Current Time: Sat Nov 17 11:20:38 GMT 2018

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

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

Back to the top