我想在地图属性中添加索引我不知道在地图属性中添加索引
我有参考 objectdb 站点链接,但我没有发现 soultion @index 足以添加索引
例如:
@Entity
@Table(name = Customer.TABLE_NAME)
public class Country {
@index
@OneToMany(fetch = FetchType.LAZY)
@JoinTable(name = Country.TABLE_TRANSLATION_NAME,
joinColumns = @JoinColumn(name = Country.TABLE_NAME),
inverseJoinColumns = @JoinColumn(name = NameTranslation.TABLE_NAME))
@MapKeyJoinColumn(name = Language.TABLE_NAME)
private Map<Language, NameTranslation> names;
}
语言和名称翻译有单独的实体