title: android- Multiple tables of the same class in Room Database with no relation to each other
body: <p>I'm using Room as the database for the app. I have a scenario where an Object of a certain type needs to be stored in separate tables. As an example, lets take the Object called Item.java</p>
  
  <p>Now, I want to have three SQL tables:</p>
  
  <p>Item1</p>
  
  <p>Item2</p>
  
  <p>Item3</p>
  
  <p>ignore any naming conventions for SQL DB please - this is just an example</p>
  
  <p><strong>Problem:</strong> </p>
  
  <p>I have an entity as @Entity(tableName="Item1") in the Item.java class and have a DAO class that will use the table name.</p>
  
  <p>I am having 3 fragments, each being independent of each other. I just want three database with same attributes and functions as Item. I want to create another table Item2 of same Item.java class to use it in the second fragment. And one more table Item3 of same Item.java class for third fragment.</p>
  
  <p>One solution is to create another class Item2.java and Item3.java and extend Item.java to it and create the DAO and Room Database for that class. But it would be redundant.</p>
  
  <p><strong>Question</strong>:-</p>
  
  <p>Is there any other way i can create multiple tables of same class having no relation to each other?</p>