Hibernate version: NA
Mapping documents: NA
Code between sessionFactory.openSession() and session.close(): NA
Full stack trace of any exception that occurs: NA
Name and version of the database you are using: NA
The generated SQL (show_sql=true): NA
Debug level Hibernate log excerpt: NA
I have a mapping question. I have a schema that I can not change. It has a
house table and a
house_detail table. I want to map these two tables to one pojo. Is this possible? For example I have the data:
Code:
House
house_id house_detail_id house_name
1 11 'Home'
2 12 'Vacation Home'
Code:
House_Detail
house_detail_id address
11 123 Street
12 522 Road
This should populate the pojo com.company.House class with the house_id, house_name and address.