I have a global superclass for all hibernate mapped entity classes
Code:
@MappedSuperclass
public abstract class BaseEntity {..}
@Entity
@Table(name = "junk", schema = "dbo")
public class Junk extends BaseEntity implements Serializable {..}
I tried to set the default inheritance strategy by adding @Inheritance(strategy=InheritanceType.JOINED) to BaseEntity and this works
***BUT*** I can not then override this on specific entities where I wish to deviate from the default approach, any @Inheritance annotation on the subclass is just ignored.
Is this expected/valid behaviour?
Is there a way I can do this?