Created
September 3, 2019 22:51
-
-
Save DenisBronx/1c8adba79604976f180a89e300e15236 to your computer and use it in GitHub Desktop.
Repository Pattern DB DTO
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
// Database DTO | |
@Entity(tableName = "Product") | |
data class DBProduct( | |
@PrimaryKey | |
@ColumnInfo(name = "id") | |
val id: String, | |
@ColumnInfo(name = "name") | |
val name: String, | |
@ColumnInfo(name = "nowPrice") | |
val nowPrice: Double, | |
@ColumnInfo(name = "wasPrice") | |
val wasPrice: Double | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment