@Cascade(CascadeType.ALL)
In the above association mapping the following error: Type mismatch: cannot convert from CascadeType to CascadeType[]
At this time, it is because the package reference of CascadeType is wrong, and the correct reference is as follows:
import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;