I have 3 tables:
object with object_id and field_name
object_form with object_id and form_id
and object_fields with form_id and field_desc
So I can get all the objects with field_names, but I need to get field_desc. In SQL it would be something like:
select o.object_id, f.field_desc
from object o, object_form of, object_fields f
where o.object_id = of.object_id
and of.form_id = f.form_id
How can I do it in JPA?