title: JPA: prevent cascade operation[persist, remove ...]
body: <p>I have two entities</p>
  
  <pre><code>@Entity
  @Table(name="parent")
  public class Parent {
    @Id
    String uuid;
  
    @ElementCollection(fetch=FetchType.EAGER)
    @CollectionTable(
        name="child",
        joinColumns=@JoinColumn(name="parent_uuid", insertable=false, updatable=false)
    )
  
    @Column(name="uuid")
    private Set&lt;String&gt; childrenUuids = new HashSet&lt;String&gt;();
  }
  
  @Entity
  @Table(name="child") 
  public class Child {
    @Id
    String uuid;
  
    @Column(name="parent_uuid")
    String parentUuid;
  
  }
  </code></pre>
  
  <p>now when I persist Parent, the children in childrenUuids are automatically persisted because the ManyToOne relationship. I want to prevent all operations to Parent(e.g. persist, remove ...) being cascaded to Child, is it possible for JPA? I have been researching for a few days, but could not find the answer. thank you.</p>