title: hibernate many-to-one hql query, when inner join fetch property not associated
body: <p>I have a many-to-one association set up like this, in the hbm.xml:</p>
  
  <pre><code>&lt;many-to-one name="gigVenue"
  class="blah.blah.xxx" fetch="select"
  lazy="no-proxy" not-null="true" &gt;
  &lt;column name="N_VENUE_ID" precision="18" scale="0" not-null="true" /&gt;
  &lt;/many-to-one&gt;
  </code></pre>
  
  <p>And I am using instrumentation to do true lazy loading.</p>
  
  <p>BUT when I run a hql query with an inner join fetch to the other table, the property that should contain the object that is the other table's value, is left as null. Even though I can see the other table's value's object being created by hibernate.</p>
  
  <p>Does anyone have any insight into this problem?</p>
  
  <p>update:</p>
  
  <pre><code>from Gig g inner join fetch g.gigVenue gv where g.artistId = :artistId and  (g.territoryId = -1 or g.territoryId = :territoryId) order by g.gigDatetime desc
  
  &lt;set name="gigs" inverse="true" lazy="true" table="DSP_GIG" fetch="select"&gt;
  &lt;key&gt;
  &lt;column name="N_VENUE_ID" precision="18" scale="0" not-null="true" /&gt;
  &lt;/key&gt;
  &lt;one-to-many class="blah.blah.Gig" /&gt;
  &lt;/set&gt;
  </code></pre>