标签:ble ber str primary 定义 integer ima nat key
//父表子表分开定义
父表
@Inheritance(strategy = InheritanceType.JOINED)
子表
@PrimaryKeyJoinColumn(name="plateClusterId")
//父表子表公用一张表,以不同字段区分
父表
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name = "clusterUsage", discriminatorType = DiscriminatorType.INTEGER)
子表
@DiscriminatorValue("4")
标签:ble ber str primary 定义 integer ima nat key
原文地址:http://www.cnblogs.com/xuexinyan/p/6513907.html