JPA - Only get parent, not children
<p>I have a parent like this:</p>

<pre><code>@Entity
@Table(name="parent")
public class Parent {

    private List&lt;Child&gt; childs;
    private List&lt;AnotherChild&gt; anotherChilds;

    @OneToMany(mappedBy = "parent", fetch = FetchType.LAZY)
    public List&lt;Child&gt; getChilds() {
        return childs;
    }

    @OneToMany(mappedBy = "parent", fetch = FetchType.LAZY)
    public List&lt;AnotherChild&gt; getAntoherChilds() {
        return anotherChilds;
    }

    //Getters and Setters ommited
}
</code></pre>

<p>And two children like this</p>

<pre><code>@Entity
@Table(name="child")
public class Child {

    private Parent parent;

    @ManyToOne
    @JoinColumn(name = "column_name")
    public Parent getParent() {
        return patern;
    }
}

@Entity
@Table(name="another_child")
public class AnotherChild {

    private Parent parent;

    @ManyToOne
    @JoinColumn(name = "column_name")
    public Parent getParent() {
        return patern;
    }
}
</code></pre>

<p>I have a named query which gets all the Parents, but this is also loading all the children? How can I stop the children for automatically loading?</p>

<p>Thanks.</p>