Skip to main content



      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 03:22 Go to next message
Eclipse UserFriend
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 332 times)
Re: EAttribute "ID" with Auto Increment [message #1732557 is a reply to message #1696534] Wed, 18 May 2016 05:02 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: EAttribute "ID" with Auto Increment [message #1743622 is a reply to message #1732557] Sat, 17 September 2016 04:43 Go to previous message
Eclipse UserFriend
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: Wed Jul 30 13:31:44 EDT 2025

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

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

Back to the top