我在 jpa 中实现继承时遇到问题。我有以下实体:
@Entity
@Inheritance(strategy=InheritanceType.JOINED)
public class Person implements Serializable{
private String name;
private String }
@Entity
@Inheritance(strategy=InheritanceType.JOINED)
public class User extends Person {
private String salary;}
public class chef extends User{}
我希望所有实体都是具体的,这是正确的还是我应该改变一些东西?