Defining Inheritance Mapping

Inheritance can be mapped using a table per class, joined subclass, or table per class hierarchy inheritance mapping strategy. You can apply any of these inheritance mapping strategies or mix them. You should define primary identifier on the entity class that is the root of the entity hierarchy.