assume there are two tables employee(empid, empname, deptid) and department(deptid, deptname). There is primarykey and foriegn key relationship is there between these two tables.
How can I do mapping in such a way if I search empid then I get both employee and department values?
do I need to have bean classes employee and department seperately or one class only?
Do I need to have 2 mapping files for each table or one mapping file?
If I need to define relationship then I need to define many to one or what relationship?
unfortunately in many hibernate books things are not clear?.