Created
October 22, 2017 14:32
-
-
Save AkshayChordiya/7e2ef6334d82871585676474f64f05de to your computer and use it in GitHub Desktop.
User DAO with Address - Room
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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