title: hibernate eagerly load an association that's normally lazy
body: <p>I have these 2 mappings:</p>
  
  <pre><code>&lt;hibernate-mapping&gt;
      &lt;class name="sample.Operator" table="OPERATOR"&gt;
          &lt;id name="id" &gt;
              &lt;generator class="native" /&gt;
          &lt;/id&gt;
          &lt;property name="name"  not-null="true"&gt;
              &lt;column name="NAME" /&gt;
          &lt;/property&gt;
          &lt;set name="pointCodes" inverse="false" lazy="true" cascade="save-update"&gt;
              &lt;key&gt;
                  &lt;column name="OperatorID" /&gt;
              &lt;/key&gt;
              &lt;one-to-many class="sample.PointCode" /&gt;
          &lt;/set&gt;
      &lt;/class&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;hibernate-mapping&gt;
   &lt;class name="sample.PointCode" table="POINTCODE"&gt;
    &lt;id name="id"&gt;
     &lt;generator class="native" /&gt;
    &lt;/id&gt;
    &lt;properties name="pointCodeKey" unique="true"&gt;
     &lt;property name="pointCode" not-null="true"&gt;
     &lt;/property&gt;
     &lt;property name="networkIndicator" not-null="true"&gt;
     &lt;/property&gt;
    &lt;/properties&gt;
    &lt;property name="name" not-null="true"&gt;
    &lt;/property&gt;
   &lt;/class&gt;
    &lt;/hibernate-mapping&gt;
  </code></pre>
  
  <p>Most of the time when featching an Operator I want the pointCodes to be fetched lazily, so I don't want to set lazy="false" in the mappings,</p>
  
  <p>However I have one query, e.g. <code>session.createQuery("from Operator").list()</code> where I do want the pointCodes association to NOT be fetched lazily - how do I do that ?</p>