How to get the ID from super class as primary key in derived class using jpa mapping XML
posted 3 years ago
I have a supper class which has few variables like ID, name etc. and there is another class which extend the super class.
The base class is defined as a mapped superclass and the derived classes are regular entities. At the class level, the entities extend the base class. The problem is since the id is part of base class(mapped super class) I am not defining it in derived class. On execution it gives an error saying "No identifier defined for the derived class. Please find the code sinpet below: