You only need to create a VIEW in your Oracle environment, as follows:
CREATE VIEW V_NAMES AS
select NVL( b.name, c.name) resolved_name
from a, b, c
where (a.id_toc = b.id_toc) or (a.id_toc = c.id_toc)
The name “V_NAMES” is short for “View of names”.
“RESOLVED_NAME” is the name of the result of NVL function.
So, you’ll have to insert, in B.O. Designer, only a CLASS called V_NAMES, with a unique column RESOLVED_NAME.
Oracle will do the rest!
[edited, used bbc CODE formatting - Christian, if you turned on bbc settings you will be able to format your posts, which would make it easier to read - Andreas ]