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
In intelliJ I got this problem when I built (ctrl+shift+F9) at the file level.
The reason is, I had changes in other files in the same maven project, that were not getting picked.
I solved it by building at the project level (Select the Maven project in intellij and press ctrl+shift+F9)