I have these tables and the relationships between them:
- 1 project hasmany configurationcontext 1 issuetype hasmany
- optionconfiguration hasmany configurationcontext hasmany
- optionconfiguration (does not exist intermediate table)
My goal is to get information like this query.
SELECT IT.id, IT.pname
FROM configurationcontext CC
LEFT OUTER JOIN optionconfiguration OC ON OC.fieldconfig = CC.fieldconfigscheme
LEFT OUTER JOIN issuetype IT ON IT.id = OC.optionid
WHERE CC.project = 10000
my doubts: - which the controller to use to create a function that return me this information? - How do I get this information?
thanks :)