45 lines
1.4 KiB
Java
45 lines
1.4 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 JenisPelayananProfile
|
|
*
|
|
* @author Generator
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Entity
|
|
@Table(name = "JenisPelayananProfile_M")
|
|
public class JenisPelayananProfile extends BaseMaster {
|
|
|
|
@NotNull(message = "Jenis Pelayanan Profile tidak boleh kosong")
|
|
@Column(name = "JenisPelayananProfile", nullable = false, length = 50)
|
|
@Caption(value = "Jenis Pelayanan Profile")
|
|
private String jenisPelayananProfile;
|
|
|
|
@NotNull(message = "Kd Jenis Pelayanan Profile tidak boleh kosong")
|
|
@Column(name = "KdJenisPelayananProfile", nullable = false, length = 1)
|
|
@Caption(value = "Kode Jenis Pelayanan Profile")
|
|
private String kdJenisPelayananProfile;
|
|
|
|
@NotNull(message = "QJenis Pelayanan Profile tidak boleh kosong")
|
|
@Column(name = "QJenisPelayananProfile", nullable = false)
|
|
@Caption(value = "QJenis Pelayanan Profile")
|
|
private Byte qJenisPelayananProfile;
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = SEQUENCE, generator = "public.jenispelayananprofile_m_id_seq")
|
|
@SequenceGenerator(name = "public.jenispelayananprofile_m_id_seq", sequenceName = "public.jenispelayananprofile_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
} |