I’m trying to build a database using Room DB that consists of four entities, I have already create a class for each entity and annotate it with @Entity annotation. Also I have created a DAO for each of the entities. And finally I create the Database abstract class and create an abstract method for each of the DAO interface.
My 1st question is: I want to fill up the table data for the first 3 entities before the user use the application as manually in the code so once the user download the app these tables will be already defined.
My 2nd question Which is better to make a DAO for each entity or make generic DAO?