Storing Data in Android with Room
Custom SQL Table and Column Names
Autoplay
Up next
Previous
About
Room - Custom SQL Table and Column Names
This lesson will explain how Room maps your entity and its fields into SQL tables and columns, and demonstrate how you can customize how it does this if desired.
We'll also show how to inspect the auto-generated code that Room saves you from writing.
Summary of content
- Default behaviour for deciding SQL table and column names
tableName
property to customizeSQLite
table name@ColumnInfo
annotation to customiseSQLite
column name- How to inspect the auto-generated database code to see what Room is doing under the hood
Links
Instructor
Links
Comments
Lessons in Storing Data in Android with Room
1. Introduction and Integration
01:35
2. Creating the Database

02:23
3. Defining an Entity

02:02
4. Custom SQL Table and Column Names

01:20
5. Creating the Data Access Object (DAO)

Pro
01:50
6. Inserting Entities with the @Insert Annotation

Pro
03:29
7. Reading data using the @Query Annotation

Pro
02:34
8. LiveData

Pro
03:00
9. Passing Parameters into a @Query

Pro
02:23
10. Deleting entities using the @Delete annotation

Pro
02:56
11. Updating an entity using the @Update annotation

Pro
02:32
12. Foreign Key Relationships

Pro
03:55
13. One to Many Relationships

Pro
04:28
14. @Relation annotation

Pro
04:05
15. Many to Many Relationship

Pro
11:25
16. TypeConverter

Pro
02:39
17. Database Migrations

Pro
05:29

Something went wrong
Lesson added to playlist
Create new playlist
Name can't be empty