title: Cost of Inheritance Java (Android)
body: <p>I am building an extension of ORMLite to target Android.</p>
  
  <p><strong>What I want to do</strong> </p>
  
  <p>I want to reproduce one of the behavior that Doctrine and Symfony are achieving in PHP with models.
  In a word: </p>
  
  <ul>
  <li>From a yml file generate a bunch of BaseModel class with accessors
  and things that won't change.</li>
  <li>Let the real model inherits from this
  BaseModel so that the user changes could persist even if they regenerate the models from the yml.</li>
  </ul>
  
  <p><strong>My question</strong></p>
  
  <p>I was wondering if this is good in practice to try to achieve such an objective on Android or if this will be risky in terms of performance (the heavy usage of inheritance).</p>
  
  <p>If you think that it is clumsy, how can I allow the user to change the .yml file, generate the model and do no start from scratch rebuilding the customized aspects of his model.
  I know this can be done by some "trick" but I really would like not to reinvent the wheel.</p>
  
  <h2>EDIT</h2>
  
  <p>Sorry, I forgot to add: <strong>I am using python</strong> to do this.</p>
  
  <p>Thanks</p>