java.lang.Object
es.kukenan.smartfi.microservice.communication.repository.entity.Notification
All Implemented Interfaces:
Serializable

@Entity public class Notification extends Object implements Serializable
Notification database entity.
See Also:
  • Field Details

    • MAX_STATUS_DESCRIPTION

      public static final int MAX_STATUS_DESCRIPTION
      Maximum admissible size for status description.
      See Also:
    • id

      @NotBlank @Size(max=100) private @NotBlank @Size(max=100) String id
      Notification identifier.
    • externalId

      @Size(max=100) private @Size(max=100) String externalId
      Notification external identifier.
    • creationDate

      @NotNull private @NotNull ZonedDateTime creationDate
      Creation date.
    • updateDate

      @NotNull private @NotNull ZonedDateTime updateDate
      Update date.
    • status

      @NotNull private @NotNull NotificationStatus status
      Provider used to send the notification.
    • statusDescription

      @Size(max=1024) private @Size(max=1024) String statusDescription
      Error description is the notification is in error status.
    • destination

      @NotNull @Size(max=255) private @NotNull @Size(max=255) String destination
      The original destination address of this notification.
    • cost

      private Float cost
      Notification delivery cost.
    • currency

      @Size(max=5) private @Size(max=5) String currency
      Notification delivery cost currency.
    • msgCount

      private Integer msgCount
      Notification message count, if it was split in order to be delivered (for example, in SMS with more than 160 characters).
    • user

      @NotNull private @NotNull User user
      The user the notification is send to.
    • message

      @NotNull private @NotNull Message message
      The message this notification corresponds to.
    • template

      private Template template
      The template used this notification corresponds to.
    • campaign

      private Campaign campaign
      The campaign this notification corresponds to (if any).
  • Constructor Details

    • Notification

      public Notification()