66 lines
2.0 KiB
Java
66 lines
2.0 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 JenisKomponenHarga
|
|
*
|
|
* @author Generator
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Entity
|
|
@Table(name = "JenisKomponenHarga_M")
|
|
public class JenisKomponenHarga extends BaseMaster {
|
|
|
|
@NotNull(message = "Jenis Komponen Harga tidak boleh kosong")
|
|
@Column(name = "JenisKomponenHarga", nullable = false, length = 30)
|
|
@Caption(value = "Jenis Komponen Harga")
|
|
private String jenisKomponenHarga;
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectDepartemenFk")
|
|
@Caption(value = "Object Departemen")
|
|
private Departemen departemen;
|
|
|
|
@Column(name = "ObjectDepartemenFk", insertable = false, updatable = false)
|
|
private Integer departemenId;
|
|
|
|
@NotNull(message = "Kd Jenis Komponen Harga tidak boleh kosong")
|
|
@Column(name = "KdJenisKomponenHarga", nullable = false)
|
|
@Caption(value = "Kode Jenis Komponen Harga")
|
|
private Byte kdJenisKomponenHarga;
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectJenisKomponenHargaHeadFk")
|
|
@Caption(value = "Object Jenis Komponen Harga Head")
|
|
private JenisKomponenHarga jenisKomponenHargaHead;
|
|
|
|
@Column(name = "ObjectJenisKomponenHargaHeadFk", insertable = false, updatable = false)
|
|
private Integer jenisKomponenHargaHeadId;
|
|
|
|
@NotNull(message = "No Urut tidak boleh kosong")
|
|
@Column(name = "NoUrut", nullable = false)
|
|
@Caption(value = "No Urut")
|
|
private Byte noUrut;
|
|
|
|
@NotNull(message = "QJenis Komponen Harga tidak boleh kosong")
|
|
@Column(name = "QJenisKomponenHarga", nullable = false)
|
|
@Caption(value = "QJenis Komponen Harga")
|
|
private Byte qJenisKomponenHarga;
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = SEQUENCE, generator = "public.jeniskomponenharga_m_id_seq")
|
|
@SequenceGenerator(name = "public.jeniskomponenharga_m_id_seq", sequenceName = "public.jeniskomponenharga_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
} |