Created
October 22, 2017 13:29
-
-
Save AkshayChordiya/3748803b06998a166c350c0ae5996dbf to your computer and use it in GitHub Desktop.
User entity with embedded address
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
@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