Hibernate provide feature such as fine grain modeling, which allow you to have multiple POJO class per single table. The requirement you have is probably easily done by combine your tables in the database as a VIEW, then map a single POJO to it.
Since you are new to Hibernate, then you need to read Reference Manual, to see what it can provide you as a ORM so that you may take max advantage of it. Ref manual shows how to create the mapping file as you've asked.
_________________ Zemian Deng ------------ Need a Java Scheduler? Try http://bitbucket.org/timemachine/scheduler
|