title: Spring Data CrudRepository cascading deletes on @OneToMany Unidirectional
body: <p>Evening all,</p>
  
  <p>I have an field with the following signature: </p>
  
  <pre><code>@OneToMany(fetch=FetchType.EAGER, cascade=CascadeType.ALL, orphanRemoval=true)
  @JoinColumn(name="username")
  private Collection&lt;UserAuthority&gt; authorities; 
  </code></pre>
  
  <p>When I try to remove a UserAuthority from the collection, it tries updating by setting username to null, rather than deleting.</p>
  
  <p>Remove: </p>
  
  <pre><code>...
  authorities.remove(targetAuthority);
  user.setAuthorities(authorities);
  repo.save(user);
  ...
  </code></pre>
  
  <p>Is this correct?</p>
  
  <p>The only way I can get it to cascade the delete correctly is if I have a seperate UserAuthority repository and do something like the following </p>
  
  <pre><code>...
  authRepo.delete(authorities);
  ...
  </code></pre>
  
  <p>Any help would be awesome!</p>
  
  <p>Thanks!</p>