Salman Manoe 554f2f426a Update domain entity
Penerapan lombok untuk mengurangi boilerplate code
2025-02-10 15:12:43 +07:00

45 lines
1.3 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 HubunganKeluarga
*
* @author Generator
*/
@Getter
@Setter
@Entity
@Table(name = "HubunganKeluarga_M")
public class HubunganKeluarga extends BaseMaster {
@NotNull(message = "Hubungan Keluarga tidak boleh kosong")
@Column(name = "HubunganKeluarga", nullable = false, length = 20)
@Caption(value = "Hubungan Keluarga")
private String hubunganKeluarga;
@NotNull(message = "Kd Hubungan Keluarga tidak boleh kosong")
@Column(name = "KdHubunganKeluarga", nullable = false)
@Caption(value = "Kode Hubungan Keluarga")
private Byte kdHubunganKeluarga;
@NotNull(message = "QHubungan Keluarga tidak boleh kosong")
@Column(name = "QHubunganKeluarga", nullable = false)
@Caption(value = "QHubungan Keluarga")
private Byte qHubunganKeluarga;
@Id
@GeneratedValue(strategy = SEQUENCE, generator = "public.hubungankeluarga_m_id_seq")
@SequenceGenerator(name = "public.hubungankeluarga_m_id_seq", sequenceName = "public.hubungankeluarga_m_id_seq", allocationSize = 1)
@Column(name = "id")
protected Integer id;
}