EPAM Systems interview question

inheritance in hibernate