How to get first object from List<Object> using Hibernate.initialize()?
<p>Example:</p>

<pre><code>@OneToMany(fetch=FetchType.LAZY, mappedBy="album", cascade=CascadeType.ALL)
private List&lt;Photo&gt; listPhoto;

List&lt;Album&gt; albums = (List&lt;Album&gt;) criteria.list();
for(Album album : albums) {
  Hibernate.initialize(album.getListPhoto().get(0));
}
</code></pre>

<p>When i do this, brings me all Object from List, i just need First Object, even when .get(0)</p>