51 lines
1.5 KiB
Java
51 lines
1.5 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;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Entity
|
|
@Table(name = "MappingBmhpToSetAlat_M")
|
|
public class MappingBmhpToSetAlat extends BaseMaster {
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectBmhpFk")
|
|
@NotNull(message = "Bmhp tidak boleh kosong")
|
|
@Caption(value = "Object Bmhp")
|
|
private Alat bmhp;
|
|
|
|
@Column(name = "ObjectBmhpFk", insertable = false, updatable = false, nullable = false)
|
|
private Integer alatId;
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectBundleSetAlatFk")
|
|
@NotNull(message = "Bundle Set Alat tidak boleh kosong")
|
|
@Caption(value = "Object Bundle Set Alat")
|
|
private BundleSetAlat bundleSetAlat;
|
|
|
|
@Column(name = "ObjectBundleSetAlatFk", insertable = false, updatable = false, nullable = false)
|
|
private Integer bundleSetAlatId;
|
|
|
|
@Column(name = "Jumlah")
|
|
@Caption(value = "Jumlah")
|
|
private String jumlah;
|
|
|
|
@Column(name = "Satuan")
|
|
@Caption(value = "Satuan")
|
|
private String satuan;
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = SEQUENCE, generator = "public.mappingbmhptosetalat_m_id_seq")
|
|
@SequenceGenerator(name = "public.mappingbmhptosetalat_m_id_seq", sequenceName = "public.mappingbmhptosetalat_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
} |