Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

dao and db #48

Merged
merged 2 commits into from
Apr 10, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
name consistancy itemDao -> cartItemDao
Co-Authored-By: Patrick@FullStory <45576380+patrick-fs@users.noreply.github.com>
  • Loading branch information
sabrina-li and patrick-fs authored Apr 10, 2020
commit e047bc9a5758b18a0f0ed0cf42e78cea318fac61
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import androidx.room.RoomDatabase
@Database(entities = [CartItem::class, Product::class], version = 1, exportSchema = false)
abstract class AppDatabase : RoomDatabase() {
abstract fun productDao(): ProductDao
abstract fun itemDao(): CartItemDao
abstract fun cartItemDao(): CartItemDao

companion object {
// Singleton prevents multiple instances of database opening at the same time.
Expand Down