Inspectopedia Help

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


@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 ... }

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3


Jakarta EE: Persistence (JPA), 233.SNAPSHOT

Last modified: 13 July 2023