I really don\'t understand this situation, I have two objects Doctor and Appointment, these 2 tables are linked by a Id mapping table:
Doctor.hbm.xml: