Why would you want to do something like that? You are going to lose type safety, the calls will be slower because you use Reflection and this is not how you are supposed to map your entities.
Also, JPA inheritance is not for reusing properties, it’s for varying behavior as explained in this article.
Therefore, the best solution to your problem is to rethink your design and to use entities just as they are meant to be used.
Thank you Vlad for you answer.
Our products are currently built over an in-house developed platform, and we are working on a multi-stage plan to migrate them to hibernate.
We need this for step 1, in order to guarantee a smooth migration.
Is there a way to introduce our PropertyAccessStrategy?
Thanks again.