Class Message

java.lang.Object
org.openwms.tms.Message
All Implemented Interfaces:
Serializable

@Embeddable public class Message extends Object implements Serializable
A Message is used to encapsulate a message text with an identifier.
Author:
Heiko Scherrer
See Also:
  • Field Details

    • occurred

      private LocalDateTime occurred
      Timestamp when the Message has occurred.
    • messageNo

      private String messageNo
      Message number of the Message.
    • messageText

      private String messageText
      Message description text.
    • pKey

      private String pKey
      The unique key of the domain object in that context the message occurred.
  • Constructor Details

    • Message

      protected Message()
      Dear JPA...
    • Message

      private Message(Message.Builder builder)
  • Method Details

    • newBuilder

      public static Message.Builder newBuilder()
    • getOccurred

      public LocalDateTime getOccurred()
      Return the Date when the Message has occurred.
      Returns:
      Date when occurred.
    • getMessageNo

      public String getMessageNo()
      Get the messageNo.
      Returns:
      The messageNo.
    • getMessageText

      public String getMessageText()
      Return the message text.
      Returns:
      The message text
    • getpKey

      public String getpKey()
      Get the pKey.
      Returns:
      The pKey.
    • equals

      public boolean equals(Object o)
      Use all fields.
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Use all fields.
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Use all fields.
      Overrides:
      hashCode in class Object