HCLTech Interview Question

focus on hibernate only and ofcource the exact code.