Skip to content

Instantly share code, notes, and snippets.

@AkshayChordiya
Created October 22, 2017 14:32
Show Gist options
  • Save AkshayChordiya/7e2ef6334d82871585676474f64f05de to your computer and use it in GitHub Desktop.
Save AkshayChordiya/7e2ef6334d82871585676474f64f05de to your computer and use it in GitHub Desktop.
User DAO with Address - Room
@Query("SELECT users.*, city FROM users JOIN addresses ON users.address_id = addresses.id")
fun getUsersWithCity(): LiveData<List<UserWithAddress>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment