info.java

package com.huaweisymantec.rmc.core.domain;


import javax.persistence.CascadeType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Entity;


import javax.persistence.ManyToOne;
@Entity
public class Info {

private int id;

private String location;

private String systemname;

private String esn;

private String level;

private String time;

private String alarmname;

private String ip;

private String alarmid;

private String description;

private String cause;

private Equipment equipment;

private String type;

private String Faultdisk;

@Id
@GeneratedValue
public int getId() {
return id;
}

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

public String getLocation() {
return location;
}

public void setLocation(String location) {
this.location = location;
}

public String getSystemname() {
return systemname;
}

public void setSystemname(String systemname) {
this.systemname = systemname;
}

public String getEsn() {
return esn;
}

public void setEsn(String esn) {
this.esn = esn;
}

public String getLevel() {
return level;
}

public void setLevel(String level) {
this.level = level;
}

public String getTime() {
return time;
}

public void setTime(String time) {
this.time = time;
}

public String getAlarmname() {
return alarmname;
}

public void setAlarmname(String alarmname) {
this.alarmname = alarmname;
}

public String getIp() {
return ip;
}

public void setIp(String ip) {
this.ip = ip;
}

public String getAlarmid() {
return alarmid;
}

public void setAlarmid(String alarmid) {
this.alarmid = alarmid;
}

public String getDescription() {
return description;
}

public void setDescription(String description) {
this.description = description;
}

public String getCause() {
return cause;
}

public void setCause(String cause) {
this.cause = cause;
}

@ManyToOne(cascade={CascadeType.ALL})
public Equipment getEquipment() {
return equipment;
}

public void setEquipment(Equipment equipment) {
this.equipment = equipment;
}

public String getType() {
return type;
}

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

public String getFaultdisk() {
return Faultdisk;
}

public void setFaultdisk(String faultdisk) {
Faultdisk = faultdisk;
}









}

你可能感兴趣的:(java)