title: Hibernate ManyToOne with FetchType.LAZY not fetching lazy
body: <p>I am using Hibernate with spring.</p>
  
  <p>I have a model-class like this. </p>
  
  <pre><code>
  @Entity
  @Table(name = "forumtopic")
  public final class Forumtopic extends AbstractUserTracking implements
      java.io.Serializable {
  
  /**SNIP **/
  
      private Forumcategory forumcategory;
  
      @ManyToOne(fetch = FetchType.LAZY)
      @JoinColumn(name = "FkForumcategoryId", nullable = false)
      public Forumcategory getForumcategory() {
          return this.forumcategory;
      }
  
      public void setForumcategory(final Forumcategory forumcategory) {
          this.forumcategory = forumcategory;
      }
  }
  
  </code></pre>
  
  <p>It works in general, but the Category is not loaded lazy, but eagerly after the ForumEntry has been loaded. </p>
  
  <p><code><pre>
  Hibernate: 
      select
          forumtopic0_.PkId as PkId19_0_,
          forumtopic0_.CreateDate as CreateDate19_0_,
          forumtopic0_.FkCreateUserId as FkCreate3_19_0_,
          forumtopic0_.FkLastUserId as FkLastUs4_19_0_,
          forumtopic0_.LastChange as LastChange19_0_,
          forumtopic0_.FkForumcategoryId as FkForum10_19_0_,
          forumtopic0_.PublishCategory as PublishC6_19_0_,
          forumtopic0_.State as State19_0_,
          forumtopic0_.Text as Text19_0_,
          forumtopic0_.Topic as Topic19_0_,
          forumtopic0_.FkTpUserId as FkTpUserId19_0_ 
      from
          forumtopic forumtopic0_ 
      where
          forumtopic0_.PkId=?
  Hibernate: 
      select
          forumcateg0_.PkId as PkId17_0_,
          forumcateg0_.CreateDate as CreateDate17_0_,
          forumcateg0_.Name as Name17_0_,
          forumcateg0_.FkRequestId as FkReques4_17_0_,
          forumcateg0_.FkTpUserId as FkTpUserId17_0_ 
      from
          forumcategory forumcateg0_ 
      where
          forumcateg0_.PkId=?
  </code></pre></p>
  
  <p>Altough the getter was not called the ForumCategory is loaded right after ForumTopic. </p>
  
  <p>This problems appears in all my @ManyToOne-associations. However @OneToMany associating are loaded lazily. </p>
  
  <p>I am using maven2 for the build. These are my dependencies.
  <code><pre></p>
  
  <pre><code>  &lt;dependency&gt;
      &lt;groupId&gt;org.springframework&lt;/groupId&gt;
      &lt;artifactId&gt;spring&lt;/artifactId&gt;
      &lt;version&gt;2.5.6&lt;/version&gt;
    &lt;/dependency&gt;
  
  
    &lt;dependency&gt;
      &lt;groupId&gt;org.hibernate&lt;/groupId&gt; 
      &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt; 
      &lt;version&gt;3.3.1.GA&lt;/version&gt; 
    &lt;/dependency&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
      &lt;artifactId&gt;ejb3-persistence&lt;/artifactId&gt;
      &lt;version&gt;1.0.2.GA&lt;/version&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
      &lt;artifactId&gt;hibernate-annotations&lt;/artifactId&gt;
      &lt;type&gt;jar&lt;/type&gt;
      &lt;version&gt;3.4.0.GA&lt;/version&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
      &lt;artifactId&gt;hibernate-entitymanager&lt;/artifactId&gt;
      &lt;type&gt;jar&lt;/type&gt;
      &lt;version&gt;3.4.0.GA&lt;/version&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
      &lt;artifactId&gt;hibernate-search&lt;/artifactId&gt;
      &lt;version&gt;3.1.0.GA&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p></code></pre></p>
  
  <p>Can someone please help me understand what is happening?</p>