I\'m using JPA2 with Hibernate and try to introduce a common base class for my entities. So far it looks like that:
@MappedSuperclass
public abstract class B
In JPA that cannot be done with annotations. Annotation itself cannot be overridden. Entity inherits all the mapping information from MappedSuperClass. There is only two annotations that can be used to redefine mappings inherited from mapped superClass:
Neither of them helps with GeneratedValue.