Hibernate表集成
1、父类:
@Entity
@Table(name = "tab_product")
@Inheritance(strategy = InheritanceType.JOINED)
2、子类
@Entity
@Table(name = "tab_cpa_product")
@PrimaryKeyJoinColumn(name = "cpaProductId")
1、父类:
@Entity
@Table(name = "tab_product")
@Inheritance(strategy = InheritanceType.JOINED)
2、子类
@Entity
@Table(name = "tab_cpa_product")
@PrimaryKeyJoinColumn(name = "cpaProductId")