title: Hibernate OneToMany/ManyToOne Delete Cascade
body: <p>I'm trying to create a OneToMany/ManyToOne relation. All is working as expected except the delete operation, meaning, when a OwningSide is deleted, the NonOwningSide is deleted as well.</p>
  
  <p>Is there a way to prevent this behavior, so if a OwningSide is deleted, the NonOwningSide's owningSide_id will be set to NULL?</p>
  
  <p>Pseudo-code</p>
  
  <pre><code>public class OwningSide {
  
    @OneToMany(
        cascade = {CascadeType.ALL},
        mappedBy = "owningSide")
    @LazyCollection(LazyCollectionOption.FALSE)
    @JsonManagedReference  
    private List&lt;NonOwningSide&gt; nonOwningSide;
  
  }
  
  public class NonOwningSide {
  
    @ManyToOne(
        cascade = {CascadeType.ALL},
        fetch = FetchType.EAGER)
    @JoinColumn(name = "owningSide_id")
    @JsonBackReference
    private OwningSide owningSide;
  
  }
  </code></pre>