LivingRoom is another layer above the Android Room persistence library. LivingRoom generates all the boilerplate DAOs, Repositories, ViewModels and the Database.
About this project
LivingRoom LivingRoom is another layer above the Android Room persistence library. LivingRoom generates all the boilerplate DAOs, Repositories and ViewModels. You just need to mark your entities with the appropriate annotations (@Insertable, @Deletable, @Updatable, @SelectableAll ...) to harness the power of LivingRoom. Pros Using these annotations will generate boilerplate code for you. No need to create similar DAOs abstract classes for each Entity. No need to create repositories for each Entity class. No need to create the annoying asyncTasks for each database operation No need to create ViewModels No need to create a RoomDatabase and declare all your entities. LivingRoom will do it for you! Cons Does not support migrations yet How to install Add the following lines to your build.gradle (root) And these two lines to your build.gradle (app) LivingRoom works only with java 1.8, so you should maybe add this to your build.gradle (root) How to use Just add @Crudable annotation to your entity and extend BasicEntity. All the boilerplate code of Daos, Repositories and ViewModels will be generated for you. After building your project you can use these classes in your code
From the project README on
GitHub
- Stars
- 22
- Forks
- 3
- Last push
- 11 Jul 2020
Add this badge to your README
Show that your project is listed on Made in Algeria.
[](https://www.madeinalgeria.dev/projects/livingroom)