Top "Android-room" questions

For questions related to Android Room Persistence Library (which is a part of Android Architecture Components)

How to create a table with a two or more foreign keys using Android Room?

According the entity-relationship model, the relationship between tbl_post and tbl_category could be specified using Room Persistency Library as …

android sqlite android-sqlite android-room
How to do a single row query with Android Room

How do I make a single row query with Android Room with RxJava? I am able to query for List …

android rx-java2 android-room
Room - LiveData observer does not trigger when database is updated

I am trying to find out in the code below, why is it that Room's LiveData observable does not give …

android viewmodel android-room android-architecture-components android-livedata
How to make Primary key Auto increment while using Composite Primary keys in Room persistent library?

I am using Room persistent library. I have requirement to add two primary keys in one table and one of …

android auto-increment composite-primary-key android-room
How to implement created_at and updated_at column using Room Persistence ORM tools in android

How can I implement created_at and updated_at columns using Room Persistence ORM tools in Android, that can update …

java android orm android-room sql-timestamp
Joining tables in a ROOM database

This is my first ROOM implementation. I have a User class which has a list of Pets as one of …

android sqlite android-room android-architecture-components android-database
Reusable generic base class DAOs with Android Room

Is there any way to create reusable generic base class DAOs with Android Room? public interface BaseDao<T> { @…

android android-room android-architecture-components
Backup Room database

I'm trying to backup a room database programmatically. For that, I'm simply copying the .sqlite file that contains the whole …

android sqlite android-room sqliteopenhelper android-architecture-components
Room + cannot find implementation DB + DB_Impl does not exist

I am getting following error while running application java.lang.RuntimeException: cannot find implementation for com.abc.db.abdDB. abcDB_…

android kotlin android-room
Does Room support entity inheritance?

I am trying to migrate our project to use Room, which, by the way, I think is an awesome step …

android-room