java.lang.Object
es.kukenan.smartfi.microservice.communication.repository.entity.BatchMessage

@Entity public class BatchMessage extends Object
Entity class for batch messages stored in database.
  • Field Details

    • STATUS_INITIAL

      public static final String STATUS_INITIAL
      Batch message status: initial status, unprocessed message.
      See Also:
    • STATUS_FAIL

      public static final String STATUS_FAIL
      Batch message status: failure during process.
      See Also:
    • STATUS_PROCESSED

      public static final String STATUS_PROCESSED
      Batch message status: successfully processed.
      See Also:
    • STATUSDESC_MESSAGE_FAIL

      public static final String STATUSDESC_MESSAGE_FAIL
      Batch message status description: failure due message delivery.
      See Also:
    • STATUSDESC_USER_NOTIFICATIONS_DISABLED

      public static final String STATUSDESC_USER_NOTIFICATIONS_DISABLED
      Batch message status description: failure due message delivery.
      See Also:
    • id

      private Long id
      Secuential unique identifier.
    • user

      @NotNull private @NotNull User user
      User this message is created for.
    • alertId

      @NotNull @Size(max=45) private @NotNull @Size(max=45) String alertId
      Alert identifier.
    • message

      @NotNull private @NotNull Message message
      Message to create.
    • campaign

      private Campaign campaign
      Batch message related campaign, if any.
    • status

      @NotNull @Size(max=45) private @NotNull @Size(max=45) String status
      Batch message status. Default value: 'initial'.
    • statusDesc

      @Size(max=255) private @Size(max=255) String statusDesc
      Status description.
    • creationDate

      @NotNull private @NotNull ZonedDateTime creationDate
      Row insertion date.
    • updateDate

      private ZonedDateTime updateDate
      Row update date.
    • notification

      private Notification notification
      The notification sent for this message.
  • Constructor Details

    • BatchMessage

      public BatchMessage()