I am following the following example to use inheritance for my entities.
https://blog.netgloo.com/2014/12/18/handling-entities-inheritance-with-spring-data-jpa/
He