Annotation Type EventSourcedEntity


  • @Target(TYPE)
    @Retention(RUNTIME)
    public @interface EventSourcedEntity
    An event sourced entity.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String persistenceId
      The name of the persistence id.
      int snapshotEvery
      Specifies how snapshots of the entity state should be made: Zero means use default from configuration file.
    • Element Detail

      • persistenceId

        java.lang.String persistenceId
        The name of the persistence id.

        If not specified, defaults to the entities unqualified classname. It's strongly recommended that you specify it explicitly.

        Default:
        ""
      • snapshotEvery

        int snapshotEvery
        Specifies how snapshots of the entity state should be made: Zero means use default from configuration file. (Default) Any negative value means never snapshot. Any positive value means snapshot at-or-after that number of events.
        Default:
        0