140 lines
3.1 KiB
Java
140 lines
3.1 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.FetchType;
|
|
import javax.persistence.JoinColumn;
|
|
import javax.persistence.ManyToOne;
|
|
import javax.persistence.Table;
|
|
import javax.validation.constraints.NotNull;
|
|
import com.jasamedika.medifirst2000.base.BaseTransaction;
|
|
import com.jasamedika.medifirst2000.helper.Caption;
|
|
|
|
@Entity
|
|
@Table(name="DetailHVA_T")
|
|
public class DetailHVA extends BaseTransaction{
|
|
|
|
@ManyToOne(fetch=FetchType.LAZY)
|
|
@JoinColumn(name = "ObjectHVAFk")
|
|
@Caption(value="Object HVA")
|
|
private HVA hva;
|
|
|
|
@Column(name = "ObjectHVAFk", insertable=false,updatable=false, nullable = false)
|
|
private String hvafk;
|
|
|
|
@Column(name="event", nullable=false)
|
|
@NotNull(message="Event tidak boleh kosong")
|
|
@Caption(value="Event")
|
|
private String event;
|
|
|
|
@Column(name="probability", nullable=true)
|
|
@Caption(value="Probability")
|
|
private Integer probability;
|
|
|
|
@Column(name="humanImpact", nullable=true)
|
|
@Caption(value="Human Impact")
|
|
private Integer humanImpact;
|
|
|
|
@Column(name="propertyImpact", nullable=true)
|
|
@Caption(value="Property Impact")
|
|
private Integer propertyImpact;
|
|
|
|
@Column(name="businessImpact", nullable=true)
|
|
@Caption(value="Business Impact")
|
|
private Integer businessImpact;
|
|
|
|
@Column(name="preparedness", nullable=true)
|
|
@Caption(value="Preparedness")
|
|
private Integer preparedness;
|
|
|
|
@Column(name="internalResponse", nullable=true)
|
|
@Caption(value="Internal Response")
|
|
private Integer internalResponse;
|
|
|
|
@Column(name="externalResponse", nullable=true)
|
|
@Caption(value="External Response")
|
|
private Integer externalResponse;
|
|
|
|
public HVA getHva() {
|
|
return hva;
|
|
}
|
|
|
|
public void setHva(HVA hva) {
|
|
this.hva = hva;
|
|
}
|
|
|
|
public String getHvafk() {
|
|
return hvafk;
|
|
}
|
|
|
|
public void setHvafk(String hvafk) {
|
|
this.hvafk = hvafk;
|
|
}
|
|
|
|
public String getEvent() {
|
|
return event;
|
|
}
|
|
|
|
public void setEvent(String event) {
|
|
this.event = event;
|
|
}
|
|
|
|
public Integer getProbability() {
|
|
return probability;
|
|
}
|
|
|
|
public void setProbability(Integer probability) {
|
|
this.probability = probability;
|
|
}
|
|
|
|
public Integer getHumanImpact() {
|
|
return humanImpact;
|
|
}
|
|
|
|
public void setHumanImpact(Integer humanImpact) {
|
|
this.humanImpact = humanImpact;
|
|
}
|
|
|
|
public Integer getPropertyImpact() {
|
|
return propertyImpact;
|
|
}
|
|
|
|
public void setPropertyImpact(Integer propertyImpact) {
|
|
this.propertyImpact = propertyImpact;
|
|
}
|
|
|
|
public Integer getBusinessImpact() {
|
|
return businessImpact;
|
|
}
|
|
|
|
public void setBusinessImpact(Integer businessImpact) {
|
|
this.businessImpact = businessImpact;
|
|
}
|
|
|
|
public Integer getPreparedness() {
|
|
return preparedness;
|
|
}
|
|
|
|
public void setPreparedness(Integer preparedness) {
|
|
this.preparedness = preparedness;
|
|
}
|
|
|
|
public Integer getInternalResponse() {
|
|
return internalResponse;
|
|
}
|
|
|
|
public void setInternalResponse(Integer internalResponse) {
|
|
this.internalResponse = internalResponse;
|
|
}
|
|
|
|
public Integer getExternalResponse() {
|
|
return externalResponse;
|
|
}
|
|
|
|
public void setExternalResponse(Integer externalResponse) {
|
|
this.externalResponse = externalResponse;
|
|
}
|
|
|
|
|
|
}
|