title: Android Sugar ORM - Class model with list
body: <p>I am trying to integrate my android project with a SQLite database, but I'm pretty new to this database stuff so I use <a href="http://satyan.github.io/sugar/" rel="nofollow noreferrer">Sugar ORM</a> to help me with the database side of the project.</p>
  
  <p>The problem is one of my class model contains Lists:</p>
  
  <pre><code>public class MyObject extends SugarRecord implements Parcelable {
  
      public String myString;
      public List&lt;String&gt; myStringList;
  
      public MyObject () { }
  
      private MyObject (Parcel in) {
          myString= in.readString();
          myStringList= new ArrayList&lt;&gt;(); 
          in.readList(myStringList, String.class.getClassLoader());
      }
  
      public static final Creator&lt;MyObject&gt; CREATOR = new Creator&lt;MyObject&gt;() {
          public MyObjectcreateFromParcel(Parcel in) { return new MyObject(in); }
          public MyObject[] newArray(int size) { return new MyObject[size]; }
      };
  
      @Override
      public int describeContents() { return 0; }
  
      @Override
      public void writeToParcel(Parcel dest, int flags) {
          dest.writeString(myString);
          dest.writeList(myStringList);
      }
  }
  </code></pre>
  
  <p>When I try to read my database I get this error:</p>
  
  <blockquote>
    <p>Class cannot be read from Sqlite3 database. Please check the type of field myStringList(java.util.List)</p>
  </blockquote>
  
  <p>I suppose the way the columns are created on my database don't support lists. Is there any workaround for this? How should I aproach this?</p>