title: How can I join three entities in GreenDao?
body: <p>I tried joining the three entities using the example that GreenDao provides <a href="http://greenrobot.org/greendao/documentation//joins/" rel="nofollow noreferrer">here</a>  but it gives me an error on the last line under the leadTopersonJoin parameter that says "Type Mismatch, expected Join&lt;*, Lead> found Join&lt; Lead, Person>    and I can't figure out how to fix it. </p>
  
  <pre><code>        var daoSession: DaoSession = Application.getInstance().daoSession
          var queryBuilderLead: QueryBuilder&lt;Lead&gt; = daoSession.leadDao.queryBuilder()
          var leadToPersonJoin: Join&lt;Lead, Person&gt; = queryBuilderLead.join(LeadDao.Properties.LeadPersonId, Person::class.java, PersonDao.Properties.PersonLeadId)
          var personToAddresJoin = queryBuilderLead.join(leadToPersonJoin, PersonDao.Properties.PersonAddressId, Address::class.java, AddressDao.Properties.AddressPersonId)
  </code></pre>
  
  <p>What raw Sql can I use to join the three tables? or alternatively what am I doing wrong in the greenDao Query?</p>