JungIn Choi
04/03/2021, 1:35 PMDay22
• Halfway through Lesson6
◦ _Room_(Android Jetpack database library)
▪︎ Entity - object to store in db
▪︎ Entity class defines a table. Each instance is stored as a row
▪︎ Migration - Converting existing tables and data as the db schema changes
◦ Define entity (as data class), Define interactions (as interface) - Use annotations to add metadata
◦ DAO (Database Access Object)
◦ Creating a room database (make it a singleton)
▪︎ 1) Extend RoomDatabase 2) Create database 3)Associate with DAO 4) Get reference to Database
Self-Comment
• Passed half of the entire course, yay.
• Nice job to sit down on cafe, working to pursue yesterday’s ‘goals tomorrow’, tho not with highest concentration.
• Going back to home at Friday. Should get my focus back, be ready to get back to my daily routines in my home.
Goals Tomorrow
• Pass tomorrow. Monday’s goal is to finish lesson6, surf on leetcode pages, check on BLE protocol(1)