71 lines
1.7 KiB
Java
71 lines
1.7 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
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 = "Output_M")
|
|
public class Output extends BaseMaster {
|
|
|
|
@NotNull(message = "Output tidak boleh kosong")
|
|
@Caption(value = "Output")
|
|
@Column(name = "Output", nullable = false, length = 200)
|
|
private String namaOutput;
|
|
|
|
@NotNull(message = "Kode Output tidak boleh kosong")
|
|
@Caption(value = "Kode Output")
|
|
@Column(name = "KodeOutput", nullable = true, length = 50)
|
|
private String kodeOutput;
|
|
|
|
@NotNull(message = "Keterangan tidak boleh kosong")
|
|
@Caption(value = "Keterangan")
|
|
@Column(name = "Keterangan", nullable = true, length = 200)
|
|
private String ketOutput;
|
|
|
|
public String getNamaOutput() {
|
|
return namaOutput;
|
|
}
|
|
|
|
public void setNamaOutput(String namaOutput) {
|
|
this.namaOutput = namaOutput;
|
|
}
|
|
|
|
public String getKodeOutput() {
|
|
return kodeOutput;
|
|
}
|
|
|
|
public void setKodeOutput(String kodeOutput) {
|
|
this.kodeOutput = kodeOutput;
|
|
}
|
|
|
|
public String getKetOutput() {
|
|
return ketOutput;
|
|
}
|
|
|
|
public void setKetOutput(String ketOutput) {
|
|
this.ketOutput = ketOutput;
|
|
}
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.output_m_id_seq")
|
|
@javax.persistence.SequenceGenerator(name = "public.output_m_id_seq", sequenceName = "public.output_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
public Integer getId() {
|
|
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
} |