Persistent object class signature checks
Reports incorrectly defined persistent object classes in the following cases:
Class is not top-level
Class is final
Class is annotated several times
Class is defined as both a persistent entity and an entity listener
Example:
@Entity
@EntityListeners(value = JavaEntity.class) // Error: both @Entity and @EntityListener annotations are pointing to the same class
public final class JavaEntity { // Error: persistent entity should not be final
...
}
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.
JpaObjectClassSignatureInspection- 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 Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | Jakarta EE: Persistence (JPA), 242.22892 |
Last modified: 11 September 2024