title: Spring jpa onetomany returns only one element
body: <p>I am trying to build a bidirectional one to many relationship with the spring data jpa but the list annotated with @onetomany always return one element.</p>
  
  <p>Here is the code for my entities(setters and getters omitted):</p>
  
  <pre><code>@Entity
  @Table(name = "sdk_sdk")
  public class SDKEntity {
  
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private Integer id;
  
  private String version;
  
  @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "sdk")
  @OrderBy("order ASC")
  private List&lt;SDKFileEntity&gt; fileEntities;
  }
  </code></pre>
  
  <p>And the second entity:</p>
  
  <pre><code>@Entity
  @Table(name = "sdk_file")
  public class SDKFileEntity {
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private Integer id;
  private String fileType;
  private Integer sdkId;
  
  public SDKFileEntity() {
  }
  
  @ManyToOne
  @JoinColumn(name = "id", insertable = false, updatable = false)
  private SDKEntity sdk;
  </code></pre>
  
  <p>I am trying to have a manytoone mapping where the sdkId corresponds to the id from the SDKEntity class.
  Whenever I try to get the sdkfiles from the sdkEntity using spring's repository, the size of the list is always 1.</p>
  
  <p>So for example:</p>
  
  <pre><code>SDKEntity entity=repository.findOne(foo);
  List&lt;SDKFileEntity&gt; files=entity.getFileEntities();
  </code></pre>
  
  <p>here the size of files is 1, I have to delete the first element from the database to obtain the second element.</p>