Skip to content

Instantly share code, notes, and snippets.

@AkshayChordiya
Created October 22, 2017 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AkshayChordiya/09092ce6eb451e7967fe55140c1ffb87 to your computer and use it in GitHub Desktop.
Save AkshayChordiya/09092ce6eb451e7967fe55140c1ffb87 to your computer and use it in GitHub Desktop.
Address entity for relation - Room
@Entity(tableName = "addresses")
data class Address(
@PrimaryKey
var id: Long = 0,
var state: String = "",
var city: String = ""
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment