Class Message


  • @Entity
    public class Message
    extends java.lang.Object
    Entity class for storing information about a message with messageId as primary key
    • Constructor Detail

      • Message

        public Message​(java.lang.String message,
                       java.time.LocalDateTime timeSent,
                       Chat chat,
                       User user)
      • Message

        public Message​(java.lang.String message,
                       java.time.LocalDateTime timeSent)
      • Message

        public Message()
    • Method Detail

      • getUser

        public User getUser()
      • setUser

        public void setUser​(User user)
      • getChat

        public Chat getChat()
      • setChat

        public void setChat​(Chat chat)
      • getMessageId

        public long getMessageId()
      • setMessageId

        public void setMessageId​(long messageId)
      • getMessage

        public java.lang.String getMessage()
      • setMessage

        public void setMessage​(java.lang.String message)
      • getTimeSent

        public java.time.LocalDateTime getTimeSent()
      • setTimeSent

        public void setTimeSent​(java.time.LocalDateTime timeSent)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object