spring-data-jpa實體類繼承抽象類如何映射父類的屬性到數據庫

在抽象父類上加上註解@MappedSuperclass @MappedSuperclass public class Pet { private Integer id;//id private String name;//名字 private String variety;//品種 private double weight;//體重 private Int
相關文章
相關標籤/搜索