inheritence in hibernate