Hi, As per my knowledge, i have not seen such cases where querying to the multiple tables is done using Hibernate(may be i have a very small career with hibernate).
I can tell you a work around for this. You may follow the below steps:
1. Create the view of the other database tables to a single database tables(you can use database links to do so). 2. Create POJOs for the tables(which, i guess, would already be present as you are able to query those tables). 3. As now all the tables exist in the same database(as database views), you may use a single query to query all the tables at once.
Remember, do not drop the tables while creating the hibernate session factory.
Regards, Keshav
|