Book a Demo

Author Topic: Eliminate duplicities during transformation  (Read 2966 times)

Jakub

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Eliminate duplicities during transformation
« on: November 23, 2013, 04:49:12 am »
Hi,

is it possible to eliminate duplicities during model transformation? Let me explain more.My model I am transforming were created by reverse engineering of source code. But for example collection with generic types are reversed as class attribute and reference as well. I found some explanation why that happening but currently that behaviour cause me issues. May be there are some other cases as well. Is there some way how to ensure that element atributes do not allow any duplicities? Some restriction or some code I can add to transformation etc.
Thanks for helping me out!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Eliminate duplicities during transformation
« Reply #1 on: November 25, 2013, 08:29:13 am »
Make sure that the transform reference maps to the same thing. (TRANSFORM_REFERENCE macro in the element declaration)

Jakub

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Eliminate duplicities during transformation
« Reply #2 on: November 25, 2013, 11:32:46 pm »
Quote
Make sure that the transform reference maps to the same thing. (TRANSFORM_REFERENCE macro in the element declaration)
Hi Simon,

thanks for your reply however I am not sure that I understood correctly. Because the duplicit "attribute" is in the model right from the beginning - this is the result of reverse engineering. E.g.
Attribute element: Managers: List<Manager>
and there is association property as well:
Managers with cardinality 1 to 0..*

This cause latter during generation of XML schema troubles. Is there any way how to eliminate that automatically?