Querying from multiple tables and required mapping

Hello;

I am facing an error while using session.createquery when querying from multiple tables as it is giving me error that tables are not mapped. The problem that in configuration, I can add only one class in addannotation method, so how I can resolve the mapping problem for all the tables that I am selecting from them in my HQL query?

Regards
Bilal