70 lines
1.5 KiB
Java
70 lines
1.5 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.JoinColumn;
|
|
import javax.persistence.ManyToOne;
|
|
import javax.persistence.Table;
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
import com.jasamedika.medifirst2000.base.BaseMaster;
|
|
import com.jasamedika.medifirst2000.helper.Caption;
|
|
import javax.persistence.GeneratedValue;
|
|
import javax.persistence.GenerationType;
|
|
import javax.persistence.Id;
|
|
|
|
@Entity
|
|
@Table(name = "DetailTOWS_M")
|
|
public class DetailTOWS extends BaseMaster {
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "towsFk")
|
|
@NotNull(message = "TOWS Harus Diisi")
|
|
@Caption(value = "SWOT")
|
|
private TOWS tows;
|
|
|
|
@Column(name = "towsFk", insertable = false, updatable = false)
|
|
private Integer towsId;
|
|
|
|
@Column(name = "input", nullable = false)
|
|
private String input;
|
|
|
|
public TOWS getTows() {
|
|
return tows;
|
|
}
|
|
|
|
public void setTows(TOWS tows) {
|
|
this.tows = tows;
|
|
}
|
|
|
|
public Integer getTowsId() {
|
|
return towsId;
|
|
}
|
|
|
|
public void setTowsId(Integer towsId) {
|
|
this.towsId = towsId;
|
|
}
|
|
|
|
public String getInput() {
|
|
return input;
|
|
}
|
|
|
|
public void setInput(String input) {
|
|
this.input = input;
|
|
}
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.detailtows_m_id_seq")
|
|
@javax.persistence.SequenceGenerator(name = "public.detailtows_m_id_seq", sequenceName = "public.detailtows_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
public Integer getId() {
|
|
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
} |