You can create a composite id class that only have the ContentHeader:@Embeddablepublic class ContentKey implements java.io.Serializable { @ManyToOne(cascade = {}, fetch = FetchType.LAZY) @JoinColumn(name = "ID", updatable = true) private ContentHeader header; // ...}@Entity@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)public abstract class Content { @Id public ContentKey getContentKeyId() // ...}这应该够了吧。



