在抽象父类上加上注解@MappedSuperclass
@MappedSuperclass
public class Pet {
private Integer id;//id
private String name;//名字
private String variety;//品种
private double weight;//体重
private Integer age;//年龄
private
@MappedSuperclass
public class Pet {
private Integer id;//id
private String name;//名字
private String variety;//品种
private double weight;//体重
private Integer age;//年龄
private