@SuppressWarnings(RoomWarnings.CURSOR_MISMATCH) @Query("SELECT login, avatarUrl,repoName, repoOwner, contributions FROM contributor " + "WHERE repoName = :name AND repoOwner = :owner " + "ORDER BY contributions DESC") public abstract LiveData<List<Contributor>> loadContributors(String owner, String name);
@SuppressWarnings(RoomWarnings.CURSOR_MISMATCH) @Query("SELECT login, avatarUrl, repoName, repoOwner, contributions FROM contributor " + "WHERE repoName = :name AND repoOwner = :owner " + "ORDER BY contributions DESC") public abstract LiveData<List<Contributor>> loadContributors(String owner, String name);
@SuppressWarnings(RoomWarnings.CURSOR_MISMATCH) @Query("SELECT * FROM contact INNER JOIN contacttagjoin ON contact.id = contacttagjoin.contactId WHERE contacttagjoin.tagId = :tagId") List<Contact> getContactsForTag(String tagId);
@SuppressWarnings(RoomWarnings.CURSOR_MISMATCH) @Query("SELECT * FROM tag INNER JOIN contacttagjoin ON tag.id = contacttagjoin.tagId WHERE contacttagjoin.contactId = :contactId") List<Tag> getTagsForContact(String contactId);