Sign in Go Pro

Storing Data in Android with Room

Custom SQL Table and Column Names

11/13/2018

 
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 customize SQLite table name
  • @ColumnInfo annotation to customise SQLite column name
  • How to inspect the auto-generated database code to see what Room is doing under the hood

Links

Instructor

Links

Comments

There are no comments on this lesson, start the conversation below ...

>
You need to go PRO to post comments.

Lessons in Storing Data in Android with Room