Book a Demo

Author Topic: Export to ecore  (Read 3226 times)

FrankB

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Export to ecore
« on: October 25, 2011, 07:43:13 pm »
I have a strange behavior when exporting from EA to ecore. Imagine a model with two classes, e.g. car and engine. Modeled in EA I’ll have the two classes and an aggregation where the engine is the source and the car is the target.
When I export the ecore model I get an EReference from Engine to Car instead from Car to Engine. This is wrong. How can I model the situation above (relation car – engine) to get a correct UML model, correct code and a correct exported ecore model?

Thanks in advance
Frank


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Export to ecore
« Reply #1 on: October 26, 2011, 08:17:44 pm »
Frank,

There's an option to draw aggregations in reverse (Tools|Options|Links|General|Draw Aggregations Reversed) which will probably help.

Geert

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Export to ecore
« Reply #2 on: October 27, 2011, 10:00:21 am »
Won't make any difference. The direction that they are drawn will change, but the aggregation created in the database will be identical.