newstype.java

来自「j2ee实例程序源码 综合利用ajax」· Java 代码 · 共 48 行

JAVA
48
字号
package com.gd.po;

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

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

    /** identifier field */
    private Integer id;

    /** persistent field */
    private String type;

    /** full constructor */
    public Newstype(String type) {
        this.type = type;
    }

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

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

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

    public String getType() {
        return this.type;
    }

    public void setType(String type) {
        this.type = type;
    }

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

}

⌨️ 快捷键说明

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