title: JPA+Hibernate: CriteriaQuery not loading eager ManyToOne relation
body: <p>I'm having some trouble to make <strong>CriteriaQuery</strong> load <strong>ManyToOne</strong> relationships without 
  telling it explicitly and it seems very strange having to replicate my entity annotations
  in the query to make this work:</p>
  
  <ul>
  <li><p>I have an application using JPA + Hibernate (hibernate-jpa-2.0-api)</p></li>
  <li><p>My entity <em>Computer</em>, apart from other fields contains the relationship: </p>
  
  <p>@ManyToOne(fetch = FetchType.EAGER)
  @JoinColumn(name = "employee", nullable = false)
  private Employee employee = null;</p></li>
  <li><p>As far as I know, when I load a <em>Computer</em> entity, the <em>Employee</em> related to it should be loaded in the same query automatically but, if loading a <em>Computer</em> using <strong>CriteriaQuery</strong>, it does not work that way. That is, when I create a <em>javax.persistence.criteria.CriteriaQuery</em> and execute it, I can
  see two different queries:</p>
  
  <ul>
  <li>one to fetch the <em>Computer</em></li>
  <li>another one to fetch the <em>Employee</em> (even before I use it..that is, it seems to be loading this entity because of the eager annotation)</li>
  </ul></li>
  </ul>
  
  <p>From my point of view, this should be done in the same query but don't know what to do to make this work. If I add a <em>".fetch("employee")"</em> to the <strong>criteriaquery</strong> it works but that way I'm replicating the configuration in the entity in my query and, from the point of view of the maintenance, this is not a solution.</p>
  
  <p>Is this behavior normal? Can it be modified?</p>
  
  <p>Thanks</p>