Inheritance in hibernate