Last active
July 22, 2020 08:22
-
-
Save Elbar/0c82dde8aaa883a2f8357eb651b0337b to your computer and use it in GitHub Desktop.
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 com.example.db | |
import androidx.room.Database | |
import androidx.room.RoomDatabase | |
import androidx.room.TypeConverters | |
import com.example.db.dao.* | |
import com.example.model.* | |
@Database(entities = [ | |
Account::class, | |
Message::class | |
], | |
version = 1, | |
exportSchema = false) | |
@TypeConverters(DateConverter::class) | |
abstract class ExampleDb : RoomDatabase() { | |
abstract fun accountDao(): AccountDao | |
abstract fun messageDao(): MessageDao | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment