CascadeType.ALL means it will do all actions.
CascadeType.PERSIST: While persisting an entity, it also persist the entities present in its fields. We recommend a liberal application of this cascade rule, because in case the EntityManager finds a field that references a new entity during the flush, and the field does not use CascadeType.PERSIST, then it is an error.
CascadeType.REMOVE: While deleting an entity, it also deletes the entities present in this field.
CascadeType.REFRESH: Whilerefreshing an entity, it also refreshes the entities present in this field.
CascadeType.MERGE: While merging entity state, it also merges the entities present in this field.
If you want to learn Java from the top experts, then I recommend this Java Certification program by Intellipaat.