package Bean;

import javax.persistence.*;
import java.util.Objects;

@Entity
@Table(name = "class", schema = "homework_system", catalog = "")
public class ClassEntity {
    private int classId;
    private String name;
    private Integer sumNum;

    @Id
    @Column(name = "class_id")
    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    @Basic
    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "sum_num")
    public Integer getSumNum() {
        return sumNum;
    }

    public void setSumNum(Integer sumNum) {
        this.sumNum = sumNum;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ClassEntity that = (ClassEntity) o;
        return classId == that.classId &&
                Objects.equals(name, that.name) &&
                Objects.equals(sumNum, that.sumNum);
    }

    @Override
    public int hashCode() {
        return Objects.hash(classId, name, sumNum);
    }
}
最近下载更多
lizhenmrt  LV4 2022年12月12日
这不是一只柚子吗  LV6 2021年5月24日
feiyang991128  LV4 2021年5月12日
hao liong  LV2 2021年5月3日
wensidy  LV10 2021年4月27日
hahaman  LV5 2021年4月25日
lili010126  LV8 2021年4月2日
184773349  LV8 2021年3月6日
cxy2956  LV1 2021年1月10日
李晓晗  LV1 2021年1月7日
最近浏览更多
WBelong  LV7 3月6日
asddwh  LV12 2023年12月29日
微信网友_6790506018131968  LV1 2023年12月23日
wkq888  LV16 2023年11月27日
958546428  LV3 2023年11月10日
mhymhy123  LV1 2023年10月20日
wbx666  LV1 2023年9月18日
灵依ziNing  LV7 2023年7月28日
zhumeng168  LV5 2023年7月6日
asadda  LV2 2023年6月26日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友