Add Kotlin Spring compiler plugin to module build
Adds the recommended kotlin-jpa compiler plugin for better support of JPA annotations in Kotlin.
It generates an additional zero-argument constructor for classes with a specific annotation.
This allows the Java Persistence API (JPA) to instantiate a class, although it doesn't have the zero-parameter constructor from Kotlin or Java point of view (see the description of kotlin-jpa plugin below).
Effectively, kotlin-jpa is wrapped on top of no-arg compiler plugin: The plugin specifies @Entity, @Embeddable, and @MappedSuperclass no-arg annotations automatically.
Locating this inspection
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
KotlinJpaCompilerPluginInspection- Via Settings dialog
Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.
Inspection ID: KotlinJpaCompilerPluginInspection
Suppressing Inspection
You can suppress this inspection by placing the following comment marker before the code fragment where you no longer want messages from this inspection to appear:
More detailed instructions as well as other ways and options that you have can be found in the product documentation:
Inspection Details | |
|---|---|
By default bundled with: |