It's very straightforward to use Android Paging library with Room if the list item can be directly derived from a Room Entity as described in this. But how should we go about implementing Paging if the list item is actually a composition of, let's say, 3 entities?
Consider,
data class ListItem(val name, val officeAddress, val lastTravelledPlaceName)
and
@Entity
data class User(@PrimaryKey val id, val name)
@Entity
data class Office(@PrimaryKey val id, val address)
@Entity
data class Places(@PrimaryKey val id, val name)
One solution could be to use paging on User and then query for Office and Places during the adapter's onBind..() call, but it does not seem like the right approach.