Class MailReceiver

Object
MailReceiver
All Implemented Interfaces:
Serializable

@Entity public class MailReceiver extends Object implements Serializable
It's basically a couple table between the mail sent, and the addressee. Which means there are potentially many records here for the same mail, if the mail is sent in bulk.
Author:
maartenl
See Also:
  • Constructor Details

    • MailReceiver

      public MailReceiver()
  • Method Details

    • getId

      public Long getId()
    • setId

      public void setId(Long id)
    • getHaveread

      public Boolean getHaveread()
    • setHaveread

      public void setHaveread(Boolean haveread)
    • getNewmail

      public Boolean getNewmail()
    • setNewmail

      public void setNewmail(Boolean newmail)
    • getDeleted

      public Boolean getDeleted()
      Indicates wether the received of the mail has deleted the mail. This has no effect on other receivers or the send said mail.
    • setDeleted

      public void setDeleted(Boolean deleted)
      See Also:
    • getToname

      public Person getToname()
      Returns the receiver of the mail.
      Returns:
      the person receiving the mail
    • setToname

      public void setToname(Person toname)
      Sets the receiver of the mail.
      Parameters:
      toname -
    • getMail

      public Mail getMail()
      Gets the actual mail record this person received.
      Returns:
      the mail itself
    • setMail

      public void setMail(Mail mail)
      See Also:
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object