Ammad Akhtar
Ammad Akhtar

Reputation: 51

Multiple inheritance in hibernate?

Can multiple inheritance be mapped in hibernate ORM? https://wiki.eclipse.org/Teneo/Hibernate/ModelRelational/Inheritance_Mapping says hibernate itself does not support multiple inheritance so is there a way to implement multiple inheritance or no?(Note its multiple inheritance not multilevel inheritance).

Upvotes: 1

Views: 508

Answers (1)

Roman C
Roman C

Reputation: 1

Multiple inheritance in java is only possible via interfaces, not objects. Because Hibernate is ORM framework it doesn't map interfaces, but map classes to database tables. So, there's not multiple inheritance in Hibernate.

Upvotes: 1

Related Questions