I want to use paging in room But I can not. Because I use multimap and it return map. When I use these technology together, I get this error :
error: Not sure how to convert a Cursor to this method's return type
Here is my code :
@Query("SELECT * FROM table_1 JOIN table_2 ON table_1.domain = table_2.domain)
DataSource.Factory<Integer, Map<Table1Entity, Table2Entity>> getAllData();