title: GreenDao and entity inheritance
body: <p>My task is to make disk cache on Android OS for my application (it is some sort of messenger). I'd like to store messages in database, but have met a problem of storing different types of messages (currently 5 types of messages each type have it's own fields and they all extends base class)</p>
  
  <p>GreenDao <a href="http://greendao-orm.com/documentation/modelling-entities/" rel="nofollow">documentation</a> says: </p>
  
  <p><code>Note: currently it’s impossible to have another entity as a super class (there are no polymorphic queries either)</code></p>
  
  <p>I am planing to have entity which almost 1 to 1 to base class, except one column - raw binary or json data in which every child class can write anything it need.</p>
  
  <p>My questions are:</p>
  
  <ol>
  <li>GreenDao is good solution in such case? Is there any solutions which allow not to worry about inheritance - and how much did they cost in terms of efficiency.</li>
  <li>How to "serialize" data to such field (what method I should override or where I should put my code which will do all necessary things</li>
  <li>How to give GreenDao correct constructor to "deserialize" Json or binary to correct class instance</li>
  <li>Should I use reflection - or just switch/case for finding correct constructor (only 5 types of constructors are possible) - is reflection how much will reflection "cost" in such case?</li>
  </ol>