Last active
April 11, 2018 01:53
-
-
Save markchristopherng/eec8df1642e4121c9ecb423bb51c43ed to your computer and use it in GitHub Desktop.
Room Entity
This file contains hidden or 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
package au.com.auspost.android.feature.postcode.model | |
import android.arch.persistence.room.ColumnInfo | |
import android.arch.persistence.room.Entity | |
import android.arch.persistence.room.PrimaryKey | |
@Entity(tableName = "branch_location") | |
data class BranchLocation(@PrimaryKey(autoGenerate = true) var id : Int, | |
@ColumnInfo(name = "postcode") var postcode : String?, | |
@ColumnInfo(name = "locality") var locality : String?, | |
@ColumnInfo(name = "state") var state : String?, | |
@ColumnInfo(name = "delivery") var delivery : String? = null, | |
@ColumnInfo(name = "category") var category : String?) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment