I am using greendao for an android project and want to know how to properly delete and create objects from db and from the session cache. I am currently doing the following to remove from db:
ChatDao chatDao = daoSession.getChatDao(); chatDao.queryBuilder().buildDelete().executeDeleteWithoutDetachingEntities();
However, since the method name and documentation indicate that this can leave obsolete objects in the session cache, how can I delete objects there too?
marchinram
source share