title: Querydsl set fetch mode in a query
body: <p>I have a situation where a Card entity has a foreign key to a Person.</p>
  <pre><code>public class Card implements java.io.Serializable {
      private String cardid;
      private Person person;
  
      @ManyToOne(fetch = FetchType.LAZY)
      @JoinColumn(name = &quot;USERID&quot;)
      public Person getPerson() {
          return this.person;
      }
  }
  </code></pre>
  <p>The default fetch type for the person is LAZY. Can I specify the fetch type to EAGER within a query:</p>
  <pre><code>QCard qCard = QCard.card;
  JPQLQuery query = getQuery().from(qCard);
  query.list(qCard);
  </code></pre>
  <p>Thanks for any help.</p>