If I have class Child that inherits from class Parent and Parent has properties A, B and C that Child inherits. Do they all get the @Basic annotation by default or is that applied only to properties explicitly declared within the @Entity class?
That is, if I don't want properties I inherit to get persisted, do I need to override them in Child, declare them with @Transient and have them simply call super.overridenMethod()? I also forsee this causing problems if I add methods to Parent and suddenly Child picks up new properties by mistake...?
Thanks,
Gili
|