title: JPA default fetch type
body: <p>From my understanding <code>@OneToOne</code> and <code>@ManyToOne</code> JPA annotations do an <code>eager</code> fetch. I want these to be lazily loaded in my application, or at least hint at it (which is what hibernate defaults to). I have started to add the annotation <code>fetch = FetchType.LAZY</code></p>
  
  <p>eg</p>
  
  <pre><code>@ManyToOne(optional = false, fetch = FetchType.LAZY)
  </code></pre>
  
  <p>instead of </p>
  
  <pre><code>@ManyToOne(optional = false)
  </code></pre>
  
  <p>This is both tedious and error prone. Is there a way I can do this at an application level? In the persistence.xml perhaps?</p>