Forget it, I figured out how to retrieve the hibernate objects from the composite key.
I had a question on how to display data which is a combination of YearDepartment and DepartmentMonths. DepartmentMonths is like a join table between YearDepartment and Manager which has additional data.
How do get data from a join table which has other attributes ?
The following post talks about it but I could see no solution