⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 topic.java

📁 bbs论坛 采用java的Web开发strtus、hibernate
💻 JAVA
字号:
package com.wish.bbs.pojo;

import java.util.Date;
import java.util.Set;


/**
 * Topic generated by MyEclipse - Hibernate Tools
 */

public class Topic  implements java.io.Serializable {


    // Fields    

     private String tid;
     private String title;
     private String content;
     private Date createdate;
     private String sid;
     private String iflocked;
     private String uid;
     private Date lastmodiedtime;
     private Subject subject;
     private User user;
     private Set responses=null;
     private String writer;
     private int count;
     private String cdate;
     private String tgrade;


    // Constructors

    public String getTgrade() {
		return tgrade;
	}

	public void setTgrade(String tgrade) {
		this.tgrade = tgrade;
	}

	public String getCdate() {
		return cdate;
	}

	public void setCdate(String cdate) {
		this.cdate = cdate;
	}

	public Topic(String tid, String title, String content, Date createdate,
			String iflocked, Date lastmodiedtime, String writer, int count,User user,Subject subject,String tgrade) {
		super();
		this.tid = tid;
		this.title = title;
		this.content = content;
		this.createdate = createdate;
		this.iflocked = iflocked;
		this.lastmodiedtime = lastmodiedtime;
		this.writer = writer;
		this.count = count;
		this.user=user;
		this.subject=subject;
		this.tgrade=tgrade;
	}

    public Topic(String tid, String title, String content, Date createdate,
			String iflocked, Date lastmodiedtime, String writer, int count,String tgrade) {
		super();
		this.tid = tid;
		this.title = title;
		this.content = content;
		this.createdate = createdate;
		this.iflocked = iflocked;
		this.lastmodiedtime = lastmodiedtime;
		this.writer = writer;
		this.count = count;
		this.tgrade=tgrade;
	}
	public Topic(String tid, String title, String content, Date createdate,
			String sid, String iflocked, String uid, Date lastmodiedtime,
			Subject subject, User user,String tgrade) {
		super();
		this.tid = tid;
		this.title = title;
		this.content = content;
		this.createdate = createdate;
		this.sid = sid;
		this.iflocked = iflocked;
		this.uid = uid;
		this.lastmodiedtime = lastmodiedtime;
		this.subject = subject;
		this.user = user;
		this.tgrade=tgrade;
	}

	public Topic(String tid) {
		super();
		this.tid = tid;
	}

	public Set getResponses() {
		return responses;
	}

	public void setResponses(Set responses) {
		this.responses = responses;
	}

	public Subject getSubject() {
		return subject;
	}

	public void setSubject(Subject subject) {
		this.subject = subject;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	/** default constructor */
    public Topic() {
    }

	/** minimal constructor */
    public Topic(String title, String content) {
        this.title = title;
        this.content = content;
    }
    
    /** full constructor */
    public Topic(String title, String content, Date createdate, String sid, String iflocked, String uid, Date lastmodiedtime,String writer,String tid,String tgrade) {
        this.title = title;
        this.content = content;
        this.createdate = createdate;
        this.sid = sid;
        this.iflocked = iflocked;
        this.uid = uid;
        this.lastmodiedtime = lastmodiedtime;
        this.writer=writer;
        this.tid=tid;
        this.tgrade=tgrade;
        
    }
    
    public Topic(String title, String content, Date createdate, String iflocked, Date lastmodiedtime,String writer,String tid,String tgrade) {
        this.title = title;
        this.content = content;
        this.createdate = createdate;
        this.iflocked = iflocked;
        this.lastmodiedtime = lastmodiedtime;
        this.writer=writer;
        this.tid=tid;
        this.tgrade=tgrade;
    }

   
    // Property accessors

    public String getTid() {
        return this.tid;
    }
    
    public void setTid(String tid) {
        this.tid = tid;
    }

    public String getTitle() {
        return this.title;
    }
    
    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return this.content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreatedate() {
        return this.createdate;
    }
    
    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public String getSid() {
        return this.sid;
    }
    
    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getIflocked() {
        return this.iflocked;
    }
    
    public void setIflocked(String iflocked) {
        this.iflocked = iflocked;
    }

    public String getUid() {
        return this.uid;
    }
    
    public void setUid(String uid) {
        this.uid = uid;
    }

    public Date getLastmodiedtime() {
        return this.lastmodiedtime;
    }
    
    public void setLastmodiedtime(Date lastmodiedtime) {
        this.lastmodiedtime = lastmodiedtime;
    }

	public String getWriter() {
		return writer;
	}

	public void setWriter(String writer) {
		this.writer = writer;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public Topic(String tid, String title, String content, Date createdate,
			String sid, String iflocked, String uid, Date lastmodiedtime,
			Subject subject, User user, String writer, int count,String tgrade) {
		super();
		this.tid = tid;
		this.title = title;
		this.content = content;
		this.createdate = createdate;
		this.sid = sid;
		this.iflocked = iflocked;
		this.uid = uid;
		this.lastmodiedtime = lastmodiedtime;
		this.subject = subject;
		this.user = user;
		this.writer = writer;
		this.count = count;
		this.tgrade=tgrade;
	}
   








}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -