Hello everybody.
Ok, the question may seem completely stupid to ask but, after thinking a little about it, I find myself unable to precisely answer to it.
As I understand it, the @Entity annotation has to be added on classes that have to be persisted. But what happens when the classes I want to persist extend other classes or implement interfaces? Does each ancestor have to have the @Entity annotation added as well?
More specifically, if, when mapping Inheritance, I traverse an abstract class that does not have any property, do I still have to annotate it with @Entity or not?
If you know more about the details, could you also explain what technically happens when a class gets Annotated like this?
Thank you very much in advance,
Jérôme
|