Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

02a-room #7

Open
wants to merge 1 commit into
base: 01-lifecycle
Choose a base branch
from
Open

02a-room #7

wants to merge 1 commit into from

Conversation

Serchinastico
Copy link
Contributor

This PR is not meant to be merged

This is how to include Room inside the project:

  • Include Room dependencies. We are including coroutines support to use suspend functions in the Dao.
  • Create Database,Dao and Entity to store SuperHeroes. We are using all four CRUD methods.
  • Include a migration, you can see the previous model before where we were storing the very same fields we were using for a SuperHero. Now we use the @Embedded annotation to get an object and split all its fields into fields of the table (preffixed with the string "superhero_").
  • Replace LocalSuperHeroDataSource implementation by the new Room database.

@Serchinastico Serchinastico mentioned this pull request Jan 30, 2019
Copy link
Member

@davideme davideme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants