标签:shm asc ntc join 组件 ring apk column private
MAP关联实体
// @ElementCollection
@OneToMany(cascade = {CascadeType.ALL})
// @JoinColumn(name = "theme_id")
// @MapKeyEnumerated(EnumType.STRING)
@MapKeyColumn(name="selector")
// @Column(name="block_style_id")
// @JoinColumn(name = "block_style_id")
// @CollectionTable(name="theme_block_style", joinColumns=@JoinColumn(name="my_id"))
// @CollectionTable(name="theme_style")
@JoinTable(name = "theme_style")
private Map<String, BlockStyle> style = new HashMap<>();
MAP关联组件:
@ElementCollection
// @OneToMany(cascade = {CascadeType.ALL})
// @JoinColumn(name = "theme_id")
// @MapKeyEnumerated(EnumType.STRING)
@MapKeyColumn(name="selector")
// @Column(name="block_style_id")
// @JoinColumn(name = "block_style_id")
// @CollectionTable(name="theme_block_style", joinColumns=@JoinColumn(name="my_id"))
@CollectionTable(name="theme_style")
// @JoinTable(name = "theme_style")
private Map<String, BlockStyle> style = new HashMap<>();
标签:shm asc ntc join 组件 ring apk column private
原文地址:http://www.cnblogs.com/mkxzy/p/7339091.html