title: How to get First 5 elements Hibernate
body: <p>I have a very long object, so to make the system faster, I decided to show only the top 5 on "attendance" attribute (insted to show all the elements) when retrieve by the "get" service.</p>
  
  <p>I have a attendances list, but there is a way to say only get the top 5 (on the list get) and when I got the results from the "detail" service, I will have all the itens.</p>
  
  <pre><code>@ManyToMany
  private List&lt;Attendance&gt; attendance;
  </code></pre>