title: Hibernate manyToMany only returns one element
body: <p>I want to read several Elements for a user using Hibernate.</p>
  
  <p>These are my tables in the database:
  <img src="https://i.stack.imgur.com/kmr0W.png" alt="enter image description here">
  And this is the code of my user class:</p>
  
  <pre><code>@Entity
  @Table(name="users")
  public class User
  {
  @Id
  @GeneratedValue
  @Column(name="user_id")
  private int id;
  
  @ManyToMany(fetch=FetchType.EAGER, cascade = CascadeType.ALL)
  @JoinTable(name="mapping",
      joinColumns=@JoinColumn(name="user_id"),
      inverseJoinColumns=@JoinColumn(name="element_id")
  )
  private Set&lt;Element&gt; elements;
  </code></pre>
  
  <p>It is an unidirectional mapping. So there is no 'users'-field in my elements-class.</p>
  
  <p>If I try to read a user, I only get the first element of the mapping. Insert and update works fine.</p>
  
  <p>Any ideas?? Thanks!</p>