title: How to store the arraylist in ormlite database
body: <p>I am trying to save the arraylist of class objects into the ormlite database , but it is giving the error , java.lang.IllegalArgumentException: No fields have a DatabaseField annotation in class java.util.ArrayList</p>
  
  <p>my code is</p>
  
  <pre><code>@DatabaseTable
  public class ManageModelDetails {
  
  @DatabaseField(generatedId = true)
  private int id;
  
  @DatabaseField(foreign = true, foreignAutoRefresh = true)
  private ArrayList&lt;ModelDetails&gt; listModelDetails;
  
  // ===============================================
  public ManageModelDetails() {
      super();
  }
  
  // ===============================================
  
  public ManageModelDetails(int id, ArrayList&lt;ModelDetails&gt; listModelDetails) {
      super();
      this.id = id;
      this.listModelDetails = listModelDetails;
  }
  
  // ===============================================
  
  public void setId(int id) {
      this.id = id;
  }
  
  public int getId() {
      return id;
  }
  
  public void setModelList(ArrayList&lt;ModelDetails&gt; listModelDetails) {
      this.listModelDetails = listModelDetails;
  }
  
  public ArrayList&lt;ModelDetails&gt; getModelList() {
      return listModelDetails;
  }
  
  }
  </code></pre>