GreenDao загрузить по индексу
У меня есть сущность с составным ключом. Следуя предложенному здесь, у меня есть следующий код в моем DaoGenerator, который создает базу индекса на два long
свойства.
Entity transaction = schema.addEntity("TransactionDb");
transaction.addIdProperty().primaryKey();
Property msb = transaction.addLongProperty("msb").notNull().getProperty();
Property lsb = transaction.addLongProperty("lsb").notNull().getProperty();
Index transactionIndexUnique = new Index();
transactionIndexUnique.addProperty(msb);
transactionIndexUnique.addProperty(lsb);
transactionIndexUnique.makeUnique();
transaction.addIndex(transactionIndexUnique);
transaction.addStringProperty("request");
transaction.addIntProperty("flag").notNull();
Как я могу получить объект по его индексу? Я ожидаю что-то по линии mDaoSession.getTransactionDbDao().loadByIndex()
но нет такого метода.