title: What is the use of the Hibernate @LazyCollection annotation
body: <p>I have 2 entities as Parent and Child as OneToMany relation as</p>
  
  <pre><code>@Entity
  public class Parent {
  
  @Id
  @GeneratedValue(strategy = GenerationType.AUTO)
  private Integer id;
  
  private String name;
  
  @OneToMany(mappedBy = "parent", fetch = FetchType.LAZY)
  @IndexColumn(name = "index", base = 1)
  @Cascade(org.hibernate.annotations.CascadeType.ALL)
  @LazyCollection(LazyCollectionOption.EXTRA)
  private List&lt;Child&gt; childs = new ArrayList&lt;Child&gt;();
  // getter and setter
  
  }
  </code></pre>
  
  <p>So here what is use of <strong>@LazyCollection(LazyCollectionOption.EXTRA)</strong> and when does it will come in picture, like for which operation with child list, it will be beneficial ?</p>