//父表子表分開定義it
父表im
@Inheritance(strategy = InheritanceType.JOINED)di
子表cluster
@PrimaryKeyJoinColumn(name="plateClusterId")
//父表子表公用一張表,以不一樣字段區分
父表
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name = "clusterUsage", discriminatorType = DiscriminatorType.INTEGER)
子表
@DiscriminatorValue("4")