<BUG>qb.where(BMessageDao.Properties.OwnerThread.eq(model.getId()));</BUG><CONTEXT>messageDate = earliestMessage.getDate();}else messageDate = new Date();List<BMessage> list ;QueryBuilder<BMessage> qb = DaoCore.daoSession.queryBuilder(BMessage.class);<extra_id_0>qb.where(BMessageDao.Properties.Date.isNotNull());qb.where(BMessageDao.Properties.Date.lt(messageDate));qb.limit(numberOffMessages + 1);</CONTEXT>
qb.where(BMessageDao.Properties.BThreadDaoId.eq(model.getId()));