I need to get the id of the last record in my table. I have tried:
Dao<ParticipantModel,Integer> participantDao = getHelper().getParticipantsDao();
participant = participantDao.query(participantDao.queryBuilder()
.orderBy("id", false).prepare()).get(1);
I'm not sure of how to use the QueryBuilder
to get the result I'm looking for. Thanks in advance for any ideas.