ttestclass.java.svn-base

来自「菲律宾的一个大学的图书管理系统 spring+hibernate+veloci」· SVN-BASE 代码 · 共 68 行

SVN-BASE
68
字号
/*
 * 创建日期 2005-4-18
 */
package biz.bluesky.pts.model;

import java.io.Serializable;

import org.apache.commons.lang.builder.EqualsBuilder;

public class TTestClass implements Serializable {

    private int testClassId;
    private int testId;
    private int classId;
    private String year;
    
    public TTestClass () {
        super();
    }
    public TTestClass(int testId, int classId, String year) {
        super();
        this.testId = testId;
        this.classId = classId;
        this.year = year;
    }
    
    public boolean equals(Object object) {
        if(!(object instanceof TTestClass)) {
            return false;
        }
        
        TTestClass other = (TTestClass)object;
        
        return new EqualsBuilder().append(this.getTestId(),other.getTestId()).append(
                this.getClassId(),other.getClassId()).append(
                this.getYear(),other.getYear()).isEquals();
    }
    
    
    public int getClassId() {
        return classId;
    }
    public void setClassId(int classId) {
        this.classId = classId;
    }
    
    public int getTestClassId() {
        return testClassId;
    }
    public void setTestClassId(int testClassId) {
        this.testClassId = testClassId;
    }
    
    public int getTestId() {
        return testId;
    }
    public void setTestId(int testId) {
        this.testId = testId;
    }
    
    public String getYear() {
        return year;
    }
    public void setYear(String year) {
        this.year = year;
    }
}

⌨️ 快捷键说明

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