title: Problem with GORM Lazy Loaded List
body: <p>I'm currently experiencing an issue with grails. I have a class (Item) containing a List (hasMany = [users : User]), then User is a class containing 3 sub classes (SubUser1, SubUser2).</p>
  
  <p>The problem is when I touch the collection containing the list of users, then the objects contained there are all of type User (and not of the sub class, which should be the correct one).</p>
  
  <p>With this issue is impossible to know, of which type the user in the collection is.</p>
  
  <p>Have you experienced this issue before? Do you know how to fix this?</p>
  
  <p>Thanks,
  Nicolas</p>
  
  <p>Here is the relevant piece of code:</p>
  
  <pre><code>/*** Domain Class ***/
  class Item {
     List&lt;User&gt; users = []
     static hasMany = [users : User]
  }
  
  class User {
     String username
  }
  
  class User1 {
     //Some other properties
  } 
  
  /*** On the view ***/
  item.users
       --&gt; Returns a list of User_$javassist$ and 
       not of type User1 as it should be
  </code></pre>