Advertisement
nauk0a

Untitled

Jul 21st, 2020
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.39 KB | None | 0 0
  1. package com.nauka.room
  2.  
  3. import android.os.Parcel
  4. import android.os.Parcelable
  5. import androidx.room.Embedded
  6. import androidx.room.Relation
  7. import io.reactivex.Flowable
  8.  
  9. data class EmployeeWithAddress(
  10.  
  11.     @Embedded
  12.     val employee: Employee,
  13.  
  14.  
  15.  
  16.     @Relation(parentColumn = "id", entityColumn = "aid", entity = Address::class)
  17.     var getEmployeeWithAddress: List<Address>
  18.  
  19. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement