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

📄 score.java

📁 只做是单选题!数据库表有三张:EUser,EItem,Score
💻 JAVA
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package com.exam.model;import java.io.Serializable;import java.util.Date;/** * * @author fyadmin */public class Score implements Serializable {    private int objectID;    private int score;    private Date date;    private String answer;    private String s_answer;    public Score(int objectID, int score, Date date, String answer, String s_answer) {        this.objectID = objectID;        this.score = score;        this.date = date;        this.answer = answer;        this.s_answer = s_answer;    }    public Score() {    }    /**     * @return the score     */    public int getScore() {        return score;    }    /**     * @param score the score to set     */    public void setScore(int score) {        this.score = score;    }    /**     * @return the answer     */    public String getAnswer() {        return answer;    }    /**     * @param answer the answer to set     */    public void setAnswer(String answer) {        this.answer = answer;    }    /**     * @return the s_answer     */    public String getS_answer() {        return s_answer;    }    /**     * @return the date     */    public Date getDate() {        return date;    }    @Override    public boolean equals(Object o) {        boolean result = false;        if (o instanceof Score) {            Score s = (Score) o;            result = (this.getObjectID() == s.getObjectID());        }        return result;    }    // You need to override hashCode if you override equals    @Override    public int hashCode() {        Integer OID = new Integer(getObjectID());        return OID.hashCode();    }    /**     * @return the objectID     */    public int getObjectID() {        return objectID;    }    /**     * @param objectID the objectID to set     */    public void setObjectID(int objectID) {        this.objectID = objectID;    }}

⌨️ 快捷键说明

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