Reports incorrectly defined persistent object classes in the following cases:

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