In IntelliJ I get this weird error when I try to compile.
Cannot find annotation method \'cascade()\' in type \'javax.persistence.ManyToOne\': class file for
I'm sure, it is too late to answer, but I had to follow a different approach for this error to resolve this issue.
I had to create this as global library and add that library to the module, then only the error is resolved.