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
tableNameproperty to customize
@ColumnInfoannotation to customise
- How to inspect the auto-generated database code to see what Room is doing under the hood
Something went wrong
Lesson added to playlist
Create new playlist
Name can't be empty