Mobiconf 2018: Magda Miu, Roweb
summary
Room 1.1.1 (with the newer Kotlin artifacts at version 2.0) replaces manual SQLiteOpenHelper boilerplate by generating DAO implementations from @Entity/@Dao/@Database annotations, enforces compile-time query verification, and adds migration hooks where a Migration object runs ALTER statements and Room uses an identity hash plus an exported JSON schema to verify versions. It supports type converters, embedded fields with prefixes, foreign keys or @Relation POJOs, observable queries via RxJava or LiveData, transactions, in-memory vs persistent builders, and fallbackToDestructiveMigration. Threads and concurrency behavior change between Room 1.0 and later.
AI-written summary · about
chapters (11)
- 0:00Introduction to Roweb
- 1:06Challenges in SQLite handling
- 3:39Room architecture components
- 6:13Setting up Room dependencies
- 9:31Defining entities in Room
- 12:47Handling object relations
- 17:27DAO methods and queries
- 20:00Threading and transactions
- 21:46Database migrations
- 26:06Room advantages summary
- 27:05Q&A session








