60 lines
1.7 KiB
Java
60 lines
1.7 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 DataMutasiAntarDepo
|
|
*
|
|
* @author Generator
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Entity
|
|
@Table(name = "RM_DataMutasiAntarDepo_M")
|
|
public class DataMutasiAntarDepo extends BaseMaster {
|
|
|
|
@NotNull(message = "KodeBarang tidak boleh kosong")
|
|
@Column(name = "KodeBarang", nullable = false, length = 100)
|
|
@Caption(value = "KodeBarang")
|
|
private String kodeBarang;
|
|
|
|
@NotNull(message = "NamaBarang tidak boleh kosong")
|
|
@Column(name = "NamaBarang", nullable = false, length = 100)
|
|
@Caption(value = "NamaBarang")
|
|
private String namaBarang;
|
|
|
|
@NotNull(message = "Satuan tidak boleh kosong")
|
|
@Column(name = "Satuan", nullable = false, length = 100)
|
|
@Caption(value = "Satuan")
|
|
private String satuan;
|
|
|
|
@NotNull(message = "SaldoAkhir tidak boleh kosong")
|
|
@Column(name = "SaldoAkhir", nullable = false, length = 100)
|
|
@Caption(value = "SaldoAkhir")
|
|
private String saldoAkhir;
|
|
|
|
@NotNull(message = "Tanggal tidak boleh kosong")
|
|
@Column(name = "Tanggal", nullable = false, length = 100)
|
|
@Caption(value = "Tanggal")
|
|
private String tanggal;
|
|
|
|
@NotNull(message = "Jml tidak boleh kosong")
|
|
@Column(name = "Jml", nullable = false, length = 100)
|
|
@Caption(value = "Jml")
|
|
private String jml;
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = SEQUENCE, generator = "public.RM_DataMutasiAntarDepo_M")
|
|
@SequenceGenerator(name = "public.RM_DataMutasiAntarDepo_M", sequenceName = "public.RM_DataMutasiAntarDepo_M", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
} |