Book a Demo

Author Topic: Class and its realised Interface - SQL query  (Read 2944 times)

Evandro

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Class and its realised Interface - SQL query
« on: January 11, 2020, 04:44:19 am »
Hi there, I'm trying to query my model in order to get a table with two columns: on with the name of the class and the other with name of the interface realised by the class. First of all, is there a built-in search of this kind or should I build a custom SQL query? In this second case, has anyone done anything similar before? Should I use End_Object_ID and Start_Object_ID of the t_connector table?

Thanks

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Class and its realised Interface - SQL query
« Reply #1 on: January 11, 2020, 07:47:51 am »
Yes, you need the t_connector table WHERE connector_type = "Realisation" and JOIN t_object AS o1 WHERE o1.object_id = Start_Object_ID (or if your EAP gets hickups on JOIN just a plain WHERE.

q.