I would like to build the following query using GreenDao.
select * from luckydrawclick e where e.user = ? and (e.id = ? or e.id = ? or e.id = ? or e.id = ? or e.id = ?);
The following is what I have so far.
List<LuckyDrawClick> luckyDrawClicks = luckyDrawClickDao.queryBuilder().where(Properties.User.eq(currentUser)).and(**********).list();
What do I need to place where ********** is?
I have found the answer to my own question.
QueryBuilder<LuckyDrawClick> qb = luckyDrawClickDao.queryBuilder();
qb.where(Properties.Id.in(ids), Properties.User.eq(currentUser));
List<LuckyDrawClick> luckyDrawClicks = qb.list();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With