AMPReportDetail.java 1.32 KB
package com.xkl.domain;

import org.hibernate.annotations.Cascade;

import javax.persistence.*;

/**
 * 用户数据的domain类
 */
@Entity
@Table(name = "xkl_amp_report_detail")
public class AMPReportDetail {

    //自增id
    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private long id;

    // 报告id
    @Column(name = "report_id")
    private int reportId;

    // 指标id
    @Column(name = "item_id")
    private int itemId;

    // 指标值
    @Column(name = "item_value")
    private float itemValue;


    // 0, normal; 1, lower; 2, higher.
    @Column(name = "status")
    private int status;

    public long getId() {
        return id;
    }

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

    public int getReportId() {
        return reportId;
    }

    public void setReportId(int reportId) {
        this.reportId = reportId;
    }

    public int getItemId() {
        return itemId;
    }

    public void setItemId(int itemId) {
        this.itemId = itemId;
    }

    public float getItemValue() {
        return itemValue;
    }

    public void setItemValue(float itemValue) {
        this.itemValue = itemValue;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}