title: Creating common data model for greenDao and retrofit
body: <p>I have json reponse from a web service  which is like this</p>
  
  <pre><code>{
   "id":1,
   "name":"abc",
   "address": {
                 "streetName":"cde",
                 "city":NY
              }
  }
  </code></pre>
  
  <p>I am using Retrofit and greenDao for my project . For both we  need a data model . For retrofit only , my data model look like this </p>
  
  <pre><code>public class Example {
  
      private Integer id;
      private String name;
      private Address address;
  
      public Example() {
      }
  
      public Example(Integer id, String name, Address address) {
          this.id = id;
          this.name = name;
          this.address = address;
      }
  
      public Integer getId() {
          return id;
      }
  
  
      public void setId(Integer id) {
          this.id = id;
      }
  
      public String getName() {
          return name;
      }
  
  
      public void setName(String name) {
          this.name = name;
      }
  
  
      public Address getAddress() {
          return address;
      }
  
  
      public void setAddress(Address address) {
          this.address = address;
      }
  
  }
  
  
  
  
  public class Address {
  
      private String streetName;
      private String city;
  
      public Address() {
      }
  
      public Address(String streetName, String city) {
          this.streetName = streetName;
          this.city = city;
      }
  
  
      public String getStreetName() {
          return streetName;
      }
  
  
      public void setStreetName(String streetName) {
          this.streetName = streetName;
      }
  
  
      public String getCity() {
          return city;
      }
  
      public void setCity(String city) {
          this.city = city;
      }
  
  }
  </code></pre>
  
  <p>Which can be used for <code>Retrofit</code> , but <code>greenDao</code> has a generator , which also make data model . How can I generate Datamodel from greenDao generator project , which can be used for both retrofit and greenDao</p>
  
  <p>Thanks in advance</p>