Book a Demo

Author Topic: Get Relationship type for Linked Attribute  (Read 3232 times)

Rollie

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Get Relationship type for Linked Attribute
« on: January 28, 2009, 02:18:26 pm »
I need to be able to obtain the relationship type, aggregation or association, from a custom Linked Attribute transformation template.  Does anyone know if this is possible?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Get Relationship type for Linked Attribute
« Reply #1 on: January 29, 2009, 08:21:28 am »
No.

If you want that information you'll need to use the connector template.

Rollie

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Re: Get Relationship type for Linked Attribute
« Reply #2 on: January 29, 2009, 08:51:42 am »
Thanks Simon.  I have been working on this one all day and just before you posted found out that I instruct the Class template to call the Connector template from within the class.  I need this information for a getter of the source class.  I was going by the standard Java template which used the LinkedAttribute template and did not think about switching in a custom Connector template within the class.  Thanks again.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Get Relationship type for Linked Attribute
« Reply #3 on: January 29, 2009, 08:58:13 am »
No problems.

Just remember, to get to the connectors, you can't directly call the connector template.  You have to call a list over the connectors.

Rollie

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Re: Get Relationship type for Linked Attribute
« Reply #4 on: January 29, 2009, 09:01:10 am »
Yes. I tried calling Connectors several days ago and realized it would not work.  Tried doing the list over the connectors today and it works great.