In Maven, we can enable the kotlin-jpa plugin as follows: <compilerPlugins> <plugin>jpa</plugin></compilerPlugins>