Created
October 22, 2017 09:57
-
-
Save AkshayChordiya/2b20f8a5556804bd7a629031da546905 to your computer and use it in GitHub Desktop.
User entity with ignore
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 = "", | |
@Ignore | |
var secretId: String = "" | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment