title: A heavyweight and a lightweight version of the same object
body: <p>For a project we are developing, we are in need of a lightweight and a heavyweight object of the same entity class. We are having a simple solution, but need to know if there is any better solutions from the expert perspective. Our solution is as follows:</p>
  
  <pre><code>public interface User{
  
  //Some variables and methods 
  
  }
  
  public class LightWeightUser implements User{
  
  //Lightweight code goes here
  
  }
  
  public class HeavyWeightUser implements User{
  
  //HeavyWeight code goes here
  
  }
  </code></pre>
  
  <p>We are planning to use hibernate for database handling part.</p>