XklAmpReportMetaItemsEntity.java 5.14 KB
package com.xkl.domain;

import lombok.Data;

import javax.persistence.*;

/**
 * Created by win7 on 2016/11/21.
 * 体检结果的解释
 */
@Data
@Entity
@Table(name = "xkl_amp_report_meta_items", schema = "hanhe_test", catalog = "")
public class XklAmpReportMetaItemsEntity {
    private int id;
    private int itmeId;
    private String type;
    private String title;
    private double standardLowMale;
    private double standardHighMale;
    private double standardLowFemale;
    private double standardHighFemale;
    private String explainLow;
    private String explainHigh;
    private String explainNormal;

    @Id
    @Column(name = "id")
    public int getId() {
        return id;
    }

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

    @Basic
    @Column(name = "itme_id")
    public int getItmeId() {
        return itmeId;
    }

    public void setItmeId(int itmeId) {
        this.itmeId = itmeId;
    }

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

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

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

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

    @Basic
    @Column(name = "standard_low_male")
    public double getStandardLowMale() {
        return standardLowMale;
    }

    public void setStandardLowMale(double standardLowMale) {
        this.standardLowMale = standardLowMale;
    }

    @Basic
    @Column(name = "standard_high_male")
    public double getStandardHighMale() {
        return standardHighMale;
    }

    public void setStandardHighMale(double standardHighMale) {
        this.standardHighMale = standardHighMale;
    }

    @Basic
    @Column(name = "standard_low_female")
    public double getStandardLowFemale() {
        return standardLowFemale;
    }

    public void setStandardLowFemale(double standardLowFemale) {
        this.standardLowFemale = standardLowFemale;
    }

    @Basic
    @Column(name = "standard_high_female")
    public double getStandardHighFemale() {
        return standardHighFemale;
    }

    public void setStandardHighFemale(double standardHighFemale) {
        this.standardHighFemale = standardHighFemale;
    }

    @Basic
    @Column(name = "explain_low")
    public String getExplainLow() {
        return explainLow;
    }

    public void setExplainLow(String explainLow) {
        this.explainLow = explainLow;
    }

    @Basic
    @Column(name = "explain_high")
    public String getExplainHigh() {
        return explainHigh;
    }

    public void setExplainHigh(String explainHigh) {
        this.explainHigh = explainHigh;
    }

    @Basic
    @Column(name = "explain_normal")
    public String getExplainNormal() {
        return explainNormal;
    }

    public void setExplainNormal(String explainNormal) {
        this.explainNormal = explainNormal;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        XklAmpReportMetaItemsEntity that = (XklAmpReportMetaItemsEntity) o;

        if (id != that.id) return false;
        if (itmeId != that.itmeId) return false;
        if (Double.compare(that.standardLowMale, standardLowMale) != 0) return false;
        if (Double.compare(that.standardHighMale, standardHighMale) != 0) return false;
        if (Double.compare(that.standardLowFemale, standardLowFemale) != 0) return false;
        if (Double.compare(that.standardHighFemale, standardHighFemale) != 0) return false;
        if (type != null ? !type.equals(that.type) : that.type != null) return false;
        if (title != null ? !title.equals(that.title) : that.title != null) return false;
        if (explainLow != null ? !explainLow.equals(that.explainLow) : that.explainLow != null) return false;
        if (explainHigh != null ? !explainHigh.equals(that.explainHigh) : that.explainHigh != null) return false;
        if (explainNormal != null ? !explainNormal.equals(that.explainNormal) : that.explainNormal != null)
            return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result;
        long temp;
        result = id;
        result = 31 * result + itmeId;
        result = 31 * result + (type != null ? type.hashCode() : 0);
        result = 31 * result + (title != null ? title.hashCode() : 0);
        temp = Double.doubleToLongBits(standardLowMale);
        result = 31 * result + (int) (temp ^ (temp >>> 32));
        temp = Double.doubleToLongBits(standardHighMale);
        result = 31 * result + (int) (temp ^ (temp >>> 32));
        temp = Double.doubleToLongBits(standardLowFemale);
        result = 31 * result + (int) (temp ^ (temp >>> 32));
        temp = Double.doubleToLongBits(standardHighFemale);
        result = 31 * result + (int) (temp ^ (temp >>> 32));
        result = 31 * result + (explainLow != null ? explainLow.hashCode() : 0);
        result = 31 * result + (explainHigh != null ? explainHigh.hashCode() : 0);
        result = 31 * result + (explainNormal != null ? explainNormal.hashCode() : 0);
        return result;
    }
}