私はモルフィア github バージョン 1.2.2 を使用しています。モルフィア エンティティの 1 つのフィールドにインデックスに注釈を付ける方法は知っていますが、2 つのフィールドの構成にインデックスに注釈を付ける方法はありますか。たとえば、フィールド a と b に複合インデックスが必要な場合、次のクラスの注釈はどうなるでしょうか。
@Entity
public class TestClass
{
@Property("a")
private int fieldA;
@Property("b")
private int fieldB;
//how to annotate index of compound key fieldA and fieldB using morphia index annotation?
}
前もって感謝します。