Created
April 11, 2018 04:49
-
-
Save markchristopherng/55be74ae80f6b13b53120c110fdd2da5 to your computer and use it in GitHub Desktop.
AuspostDatabase
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 | |
import android.arch.persistence.room.Database | |
import android.arch.persistence.room.RoomDatabase | |
import au.com.auspost.android.feature.postcode.model.BranchLocation | |
import au.com.auspost.android.feature.postcode.service.BranchLocationDao | |
@Database(entities = [ | |
BranchLocation::class | |
], version = 2) | |
abstract class AuspostDatabase : RoomDatabase() { | |
companion object { | |
val DB_NAME = "auspost_db" | |
} | |
abstract fun branchLocationDao(): BranchLocationDao | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment