title: Where clause is not working in Hibernate 5 XML Mapping
body: <p>I used Hibernate 4 with XML Mapping and the code is:</p>
  
  <pre><code> &lt;map name="scormData" table="scorm_data_attempt" where="current"&gt;
          &lt;key&gt;
              &lt;column name="userid" /&gt;
              &lt;column name="course_id" /&gt;
          &lt;/key&gt;
          &lt;composite-map-key class="ScormDataKey"&gt;
              &lt;key-property name="scormId" column="scorm_id"
                  type="integer" /&gt;
              &lt;key-property name="variableName" column="variable_name"
                  type="string" /&gt;
              &lt;key-property name="attempt" /&gt;
          &lt;/composite-map-key&gt;
          &lt;element type="string" column="variable_value" /&gt;
      &lt;/map&gt;
  </code></pre>
  
  <p>However, now when I change to Hibernate 5, the where field is not working anymore and I cannot retrieve data from the column current. Does anyone know why and how to fix it ?</p>