Book a Demo

Author Topic: How to declare Instantiated classes in transformat  (Read 2749 times)

wmontoya

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
How to declare Instantiated classes in transformat
« on: February 11, 2010, 08:33:11 am »
Hello I am working with EA v7.1.831
Actually I am using model transformation to generate my data access classes DAO. I have a BaseDao class with uses generics as a class parameter and all my other DAO inherit from this class.
So a create a template to generate all my DAO classes and set the arguments to my entity class (pojo), something like:

Class
{
      %TRANSFORM_REFERENCE("class_Dao",classGUID)%
      name=%qt%%className%DAO%qt%
      language="Java"
      arguments=%qt%%className%%qt%
....

I can generate the BaseDAO class, all other DAOs and the generalization relationship between all classes without problems.

Ok my issue is the arguments property is not set to its value (className). I think it is because the new DAO class doesn't have classIsInstantiated="true", but there is no way to set the class IsInstantiated property to true with transformation template nor set the class template to "Instantiated" nor set the subtype=2. because these properties are not exposed in the transformation template.

Is there any way to set the class template to Instantiated??

thank you
« Last Edit: February 11, 2010, 08:34:48 am by rlagarto »