Book a Demo

Author Topic: Tagged Values Transformation  (Read 2875 times)

rafael tartalia

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Tagged Values Transformation
« on: May 13, 2009, 05:31:29 am »
Hi all,

I'm writing a tranformation that catch classes elements and add  stereotypes for this elements. These stereotypes are used after to hold this classes in other tagged values. This classes that i need to transform, are JPA Entitys with annotations imported into EA Model, where the annotation are created in this import process, like this (entity tagged value):

annotations: @javax.persistence.Entity@Table(name = "MY_ENTITY", schema="SCHEMA_NAME")@SuppressWarnings("serial")

In the transformation, i want copy this tagged value to trasformed class.
When run the transformation, because the brackets of "MY_ENTITY", i get an error, like: "unknow MY_ENTITY".

I tried like some this,

  $annotations=%classTag:"annotations"%
  
  Tag {
        name="annotations"
        value=%qt%$annotations%qt%
  }

I tried also other craziness, but i don't get sucess.

Somebody know how i have write this transformation?

Thanks.

Rafael