Complete the code to specify a cascade type that propagates all operations.
@OneToMany(cascade = CascadeType.[1])
private List<Order> orders;The ALL cascade type propagates all operations (persist, merge, remove, refresh, detach) to the related entities.
Complete the code to cascade only the persist operation to child entities.
@OneToMany(cascade = CascadeType.[1])
private Set<Item> items;The PERSIST cascade type ensures that when the parent entity is saved, the child entities are also saved automatically.
Fix the error in the cascade configuration to allow merging child entities.
@OneToMany(cascade = CascadeType.[1])
private List<Comment> comments;The MERGE cascade type allows updates to child entities when the parent entity is merged.
Fill both blanks to cascade persist and remove operations.
@OneToMany(cascade = {CascadeType.[1], CascadeType.[2])
private Set<Tag> tags;Using both PERSIST and REMOVE cascade types ensures child entities are saved and deleted along with the parent.
Fill all three blanks to cascade merge, refresh, and detach operations.
@OneToMany(cascade = {CascadeType.[1], CascadeType.[2], CascadeType.[3])
private List<Attachment> attachments;The cascade types MERGE, REFRESH, and DETACH control updating, reloading, and detaching child entities respectively.