title: Android Room Database. How to add my Model class into Room database
body: <p>I ran into the problem of adding my model class to the Room database. I've read about @Relation, @Embedded, but I can not figure out what to do with my model class.</p>
  
  <p>Here my model class which comes from the server. I need to store this data</p>
  
  <pre><code>public class ResultsItem {
  
  private String model;
  private int id;
  private int distanceLon;
  private String brand;
  
  //*PROMBLEM HERE*
  private List&lt;BidsItem&gt; bids;
  
  //*PROMBLEM HERE*
  private User user;
  
  //*PROMBLEM HERE*
  private List&lt;FotosItem&gt; fotos;
  
  
  // getters/setters...
  
  }
  </code></pre>
  
  <p>FotosItem class</p>
  
  <pre><code>public class FotosItem {
  private String imageUrl;
  private int resultItemId;
  private int id;
  
  //getters/setters
  
  }
  </code></pre>
  
  <p>BidsItem class</p>
  
  <pre><code>public class BidsItem {
  private double distanceToAuto;
  private boolean isWin;
  private int sum;
  private String currency;
  private int id;
  
  //getters/setters
  
  }
  </code></pre>
  
  <p>I will be very grateful if someone tells me what I need to do, or at least in what direction to move</p>