commend.java

来自「一个网站的开发 struts+spring+hibernate」· Java 代码 · 共 126 行

JAVA
126
字号
package com.laoer.bbscs.bean;

import java.io.Serializable;import org.apache.commons.lang.builder.ToStringBuilder;

/** @author Hibernate CodeGenerator */
public class Commend implements Serializable {

    /** identifier field */
    private Long id;

    /** nullable persistent field */
    private long postID;

    /** nullable persistent field */
    private long postID2;

    /** nullable persistent field */
    private long bid;

    /** persistent field */
    private String title;

    /** persistent field */
    private short isBull;

    /** nullable persistent field */
    private String boardName;

    /** nullable persistent field */
    private long addTime;

    /** full constructor */
    public Commend(long postID, long postID2, long bid, String title, short isBull, String boardName, long addTime) {
        this.postID = postID;
        this.postID2 = postID2;
        this.bid = bid;
        this.title = title;
        this.isBull = isBull;
        this.boardName = boardName;
        this.addTime = addTime;
    }

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

    /** minimal constructor */
    public Commend(String title, short isBull) {
        this.title = title;
        this.isBull = isBull;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public long getPostID() {
        return this.postID;
    }

    public void setPostID(long postID) {
        this.postID = postID;
    }

    public long getPostID2() {
        return this.postID2;
    }

    public void setPostID2(long postID2) {
        this.postID2 = postID2;
    }

    public long getBid() {
        return this.bid;
    }

    public void setBid(long bid) {
        this.bid = bid;
    }

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

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

    public short getIsBull() {
        return this.isBull;
    }

    public void setIsBull(short isBull) {
        this.isBull = isBull;
    }

    public String getBoardName() {
        return this.boardName;
    }

    public void setBoardName(String boardName) {
        this.boardName = boardName;
    }

    public long getAddTime() {
        return this.addTime;
    }

    public void setAddTime(long addTime) {
        this.addTime = addTime;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("id", getId())
            .toString();
    }

}

⌨️ 快捷键说明

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