Mail.java 5.14 KB
package com.diligrp.website.domain;

import java.sql.Timestamp;

/**
 * 
 * <B>Description</B> 邮件历史 <br />
 * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />
 * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />
 * <B>Company</B> 地利集团
 * @createTime 2014年6月3日 下午12:51:49
 * @author Wang22
 */
public class Mail {

    private Long id;

    private String ip;

    /**
     * 发件人
     */
    private String sender;

    /**
     * 收件人
     */
    private String addressee;

    /**
     * 主题
     */
    private String subject;

    /**
     * 内容
     */
    private String content;

    private Timestamp created;

    private Timestamp modified;

    /**
     * get value of MailHistory.id
     * @return the id
     * @createTime 2014年6月3日 下午12:54:16
     * @author Wang22
     */
    public Long getId() {
        return id;
    }

    /**
     * set value of MailHistory.id
     * @param id the id to set
     * @createTime 2014年6月3日 下午12:54:16
     * @author Wang22
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * get value of MailHistory.ip
     * @return the ip
     * @createTime 2014年6月3日 下午12:54:16
     * @author Wang22
     */
    public String getIp() {
        return ip;
    }

    /**
     * set value of MailHistory.ip
     * @param ip the ip to set
     * @createTime 2014年6月3日 下午12:54:16
     * @author Wang22
     */
    public void setIp(String ip) {
        this.ip = ip;
    }

    /**
     * get value of MailHistory.sender
     * @return the sender
     * @createTime 2014年6月3日 下午12:54:16
     * @author Wang22
     */
    public String getSender() {
        return sender;
    }

    /**
     * set value of MailHistory.sender
     * @param sender the sender to set
     * @createTime 2014年6月3日 下午12:54:16
     * @author Wang22
     */
    public void setSender(String sender) {
        this.sender = sender;
    }

    /**
     * get value of MailHistory.addressee
     * @return the addressee
     * @createTime 2014年6月3日 下午12:54:16
     * @author Wang22
     */
    public String getAddressee() {
        return addressee;
    }

    /**
     * set value of MailHistory.addressee
     * @param addressee the addressee to set
     * @createTime 2014年6月3日 下午12:54:16
     * @author Wang22
     */
    public void setAddressee(String addressee) {
        this.addressee = addressee;
    }

    /**
     * get value of MailHistory.subject
     * @return the subject
     * @createTime 2014年6月3日 下午12:54:16
     * @author Wang22
     */
    public String getSubject() {
        return subject;
    }

    /**
     * set value of MailHistory.subject
     * @param subject the subject to set
     * @createTime 2014年6月3日 下午12:54:16
     * @author Wang22
     */
    public void setSubject(String subject) {
        this.subject = subject;
    }

    /**
     * get value of MailHistory.content
     * @return the content
     * @createTime 2014年6月3日 下午12:54:16
     * @author Wang22
     */
    public String getContent() {
        return content;
    }

    /**
     * set value of MailHistory.content
     * @param content the content to set
     * @createTime 2014年6月3日 下午12:54:16
     * @author Wang22
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * get value of MailHistory.created
     * @return the created
     * @createTime 2014年6月3日 下午12:54:16
     * @author Wang22
     */
    public Timestamp getCreated() {
        return created;
    }

    /**
     * set value of MailHistory.created
     * @param created the created to set
     * @createTime 2014年6月3日 下午12:54:16
     * @author Wang22
     */
    public void setCreated(Timestamp created) {
        this.created = created;
    }

    /**
     * get value of MailHistory.modified
     * @return the modified
     * @createTime 2014年6月3日 下午12:54:16
     * @author Wang22
     */
    public Timestamp getModified() {
        return modified;
    }

    /**
     * set value of MailHistory.modified
     * @param modified the modified to set
     * @createTime 2014年6月3日 下午12:54:16
     * @author Wang22
     */
    public void setModified(Timestamp modified) {
        this.modified = modified;
    }

    /*
     * (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("MailHistory [id=");
        builder.append(id);
        builder.append(", ip=");
        builder.append(ip);
        builder.append(", sender=");
        builder.append(sender);
        builder.append(", addressee=");
        builder.append(addressee);
        builder.append(", subject=");
        builder.append(subject);
        builder.append(", content=");
        builder.append(content);
        builder.append(", created=");
        builder.append(created);
        builder.append(", modified=");
        builder.append(modified);
        builder.append("]");
        return builder.toString();
    }

}