title: Hibernate query returns list of null
body: <p>With the following mapping file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"&gt;
  &lt;hibernate-mapping&gt;
  &lt;class name="net.woodenstar.model.shopcenter.GroupItem" table="GROUP_ITEMS"&gt;
      &lt;id name="id" type="int"&gt;
          &lt;column name="SHC_GIT_ID" /&gt;
          &lt;generator class="org.hibernate.id.enhanced.SequenceStyleGenerator"&gt;
              &lt;param name="sequence_name"&gt;GROUP_ITEMS_SEQUENCE&lt;/param&gt;
              &lt;param name="optimizer"&gt;none&lt;/param&gt;
              &lt;param name="increment_size"&gt;1&lt;/param&gt;
          &lt;/generator&gt;
      &lt;/id&gt;
      &lt;property name="name" type="string"&gt;
          &lt;column name="SHC_GIT_NAME" length="30" unique="false" not-null="true" /&gt;
      &lt;/property&gt;
  &lt;/class&gt;
  </code></pre>
  
  <p>
  the model <code>GroupItem</code> is being saved without any hesitation, but when it comes to:</p>
  
  <pre><code>List&lt;GroupItem&gt; result = query.list();
  </code></pre>
  
  <p>the result is a list with the members of null. The dbms is mysql.</p>
  
  <blockquote>
    <p>UPDATE ONE</p>
  </blockquote>
  
  <p>the query:</p>
  
  <pre><code>from net.woodenstar.model.shopcenter.GroupItem e  where 1=1  order by e.id
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/7TlEm.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7TlEm.jpg" alt="enter image description here"></a></p>