Author Topic: template invocation from another one  (Read 2625 times)

aram

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
template invocation from another one
« on: May 08, 2006, 02:22:04 am »
Is there a way to invoke a transformation template from another one?
More specific: I am trying to make one EJB template that transforms the whole model onto the EJB domain according to the class stereotypes.
So what I need to do is very simple. Check the stereotype of the class and if it is a Session I invoke the EJB Session template.
If this is possible I have another question - how do I tell to the EJB Session template which class to transform.

Thanks

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8078
  • Karma: +118/-20
    • View Profile
Re: template invocation from another one
« Reply #1 on: May 08, 2006, 03:12:49 pm »
It's not possible to do this in the current system.  What you would need to do is make one unified EJB transformation that contains stereotype overrides for the Entity or Session part.  The stereotype overrides could be copied from the built in templates for each one.