title: Ignore a FetchType.EAGER in a relationship
body: <p>I have a problem with EAGERs relationships in a big application. Some entities in this application have <code>EAGER</code> associations with other entities. This become "poison" in some functionalities. </p>
  
  <p>Now my team needs to optimize this functionalities, but <strong>we cannot change the fetch type to LAZY</strong>, because we would need to refactor the whole application.</p>
  
  <p>So, my question: Is there a way to do a specific query ignoring the EAGERs associations in my returned entity?</p>
  
  <p>Example: when a I have this entity Person, I would like to not bring the address list when I do a query to find a Person. </p>
  
  <pre><code>@Entity
  public class Person {
  
    @Column
    private String name;
  
    @OneToMany(fetch=FetchType.EAGER)
    private List&lt;String&gt; address;
  
  }
  
  Query query = EntityManager.createQuery("FROM Person person");
  //list of person without the address list! But how???
  List&lt;Person&gt; resultList = query.getResultList();
  </code></pre>
  
  <p>Thanks!</p>
  
  <p><strong>Updated</strong></p>
  
  <p>The only way I found is not returning the entity, returning only some fields of the entity. But I would like to find a solution that I can return the entity (in my example, the <code>Person</code> entity). </p>
  
  <p>I'm thinking if is possible to map the same table twice in Hibernate. In this way, I can mapping the same table without the EAGER associations. This will help me in a few cases...</p>