Book a Demo

Author Topic: how to check Class is conected to pk1 in hierarchy  (Read 2862 times)

rashwini

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
how to check Class is conected to pk1 in hierarchy
« on: November 24, 2008, 10:11:19 pm »
how to check Class1 is is connected to pkg1 thr  many sub=pacakges.

Pkg1 -> pkg2 -> pkg3 -> pkg5 > class1

Now i have the name of class i.e. class1 and the id of main package pkg1, now i have to find that these are connected to each other.

How to do that

when i fire query

select ea_guid from t_object where name ="class1"

i get many records as name is not unques thr out the repository but only packages under pkg1

so i need to find the id which is under pkg1 only and discard other.

Please provide me the signle query to find this without affecting the performace.

Please assist.

Regards