我有下面描述的类结构:
@MappedSuperclass
public abstract class A {
@Id
private Long id;
private Long revision;
...
}
@Entity
@Inheritance(strategy = InheritanceType.JOINED)
@DiscriminatorColumn
public abstract class B extends A {}
@Entity
public class C extends B {}
该结构由db结构表示:
table B (id, revision); table C (id, dtype);
但我希望有这样的结构:
table B (id); table C (id, dtype, revision);
是否可以定义此类行为?