title: Android SQLite getList issue
body: <p>Hi guys I am new on android development maybe its a easy question but I m stuck on it please help. Its my class. and i cannot cast Uretimyeri to string. How can i do this.</p>
  
  <pre><code>    private String Oid;
      private String MalzemeGrubu;
      private String Musteri;
      private UretimYeriBean UretimYeri;
      private String Model;
      private Integer Tipi;
      private Integer Durum;
      private String OzelKod;
      private String Adi;
      private String Kodu;
  </code></pre>
  
  <p>UretimYeriBean is </p>
  
  <pre><code>private String Oid;
  private Integer Tipi;
  private Integer Durum;
  private String OzelKod;
  private String Adi;
  private String Kodu;
  </code></pre>
  
  <p>And here my get list func.</p>
  
  <pre><code> public List&lt;MalzemeBean&gt; getList() {
  
      List&lt;MalzemeBean&gt; liste = new ArrayList&lt;MalzemeBean&gt;();
      SQLiteDatabase db = Global.DB.getReadableDatabase();
      String selectQuery = "Select Oid,MalzemeGrubu,Musteri,UretimYeri,Model,Tipi,Durum,OzelKod,Adi,Kodu"
              + " FROM " + TABLE_NAME + " Order by Ad COLLATE UNICODE";
  
      Cursor c = db.rawQuery(selectQuery, null);
      if (c.moveToFirst()) {
  
          do {
              MalzemeBean mlz = new MalzemeBean();
              mlz.setOid(c.getString(c.getColumnIndex("Oid")));
              mlz.setMalzemeGrubu(c.getString(c.getColumnIndex("MalzemeGrubu")));
              mlz.setMusteri(c.getString(c.getColumnIndex("Musteri")));
              mlz.setUretimYeri(c.getString(c.getColumnIndex("UretimYeri")));
              mlz.setModel(c.getString(c.getColumnIndex("Model")));
              mlz.setTipi(c.getInt(c.getColumnIndex("Tipi")));
              mlz.setDurum(c.getInt(c.getColumnIndex("Durum")));
              mlz.setOzelKod(c.getString(c.getColumnIndex("OzelKod")));
              mlz.setAdi(c.getString(c.getColumnIndex("Adi")));
              mlz.setKodu(c.getString(c.getColumnIndex("Kodu")));
              liste.add(mlz);
          } while (c.moveToNext());
      }
      c.close();
      return liste;
  }
  </code></pre>
  
  <p><br></p>
  
  <p>ıts give me error on </p>
  
  <pre><code>mlz.setUretimYeri(c.getString(c.getColumnIndex("UretimYeri"))); 
  </code></pre>
  
  <p>line , and says:</p>
  
  <blockquote>
    <p>Error:(57, 46) error: incompatible types: String cannot be converted
    to UretimYeriBean. So how i can convert Uretimyeri.Oid to string</p>
  </blockquote>