Skip to content

Instantly share code, notes, and snippets.

@AkshayChordiya
Created October 22, 2017 13:29
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/3748803b06998a166c350c0ae5996dbf to your computer and use it in GitHub Desktop.
Save AkshayChordiya/3748803b06998a166c350c0ae5996dbf to your computer and use it in GitHub Desktop.
User entity with embedded address
@Entity(tableName = "users")
data class User(
@PrimaryKey(autoGenerate = true)
var id: Int = 0,
var name: String = "",
@Embedded
var address: Address
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment