65 lines
1.9 KiB
Java
65 lines
1.9 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
import com.jasamedika.medifirst2000.base.BaseMaster;
|
|
import com.jasamedika.medifirst2000.helper.Caption;
|
|
import lombok.Getter;
|
|
import lombok.Setter;
|
|
|
|
import javax.persistence.*;
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
import static javax.persistence.GenerationType.SEQUENCE;
|
|
|
|
/**
|
|
* class DataResep
|
|
*
|
|
* @author Generator
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Entity
|
|
@Table(name = "RM_DataResep_M")
|
|
public class DataResep extends BaseMaster {
|
|
|
|
@NotNull(message = "NoResep tidak boleh kosong")
|
|
@Column(name = "NoResep", nullable = false, length = 100)
|
|
@Caption(value = "NoResep")
|
|
private String noResep;
|
|
|
|
@NotNull(message = "Tanggal tidak boleh kosong")
|
|
@Column(name = "Tanggal", nullable = false, length = 100)
|
|
@Caption(value = "Tanggal")
|
|
private String tanggal;
|
|
|
|
@NotNull(message = "JamMasuk tidak boleh kosong")
|
|
@Column(name = "JamMasuk", nullable = false, length = 100)
|
|
@Caption(value = "JamMasuk")
|
|
private String jamMasuk;
|
|
|
|
@NotNull(message = "WaktuLayanan tidak boleh kosong")
|
|
@Column(name = "WaktuLayanan", nullable = false, length = 100)
|
|
@Caption(value = "WaktuLayanan")
|
|
private String waktuLayanan;
|
|
|
|
@NotNull(message = "JamSelesai tidak boleh kosong")
|
|
@Column(name = "JamSelesai", nullable = false, length = 100)
|
|
@Caption(value = "JamSelesai")
|
|
private String jamSelesai;
|
|
|
|
@NotNull(message = "UnitLayanan tidak boleh kosong")
|
|
@Column(name = "UnitLayanan", nullable = false, length = 100)
|
|
@Caption(value = "UnitLayanan")
|
|
private String unitLayanan;
|
|
|
|
@NotNull(message = "Keterangan tidak boleh kosong")
|
|
@Column(name = "Keterangan", nullable = false, length = 100)
|
|
@Caption(value = "Keterangan")
|
|
private String keterangan;
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = SEQUENCE, generator = "public.RM_DataResep_M")
|
|
@SequenceGenerator(name = "public.RM_DataResep_M", sequenceName = "public.RM_DataResep_M", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
} |